Search found 36 matches

by mattys
Mon Dec 28, 2020 1:05 pm
Forum: PowerShell GUIs
Topic: Best way to present data
Replies: 4
Views: 355

Re: Best way to present data

OK
I will keep trying
Thank you for your time.
by mattys
Mon Dec 28, 2020 12:05 pm
Forum: PowerShell GUIs
Topic: Best way to present data
Replies: 4
Views: 355

Re: Best way to present data

OK Thanks for assisting jvierra. Basically I have a CSV file ($data) that is formatted as this: date,a,b,c 10,1,0,0 11,0,0,1 12,0,1,0 13,0,1,0 14,0,0,1 15,1,0,0 16,0,1,0 17,1,0,0 18,1,0,0 19,0,0,1 I iterate through each row ($Row) in the data table ($data) Collect all the concerned columns ('a', 'b'...
by mattys
Mon Dec 28, 2020 7:35 am
Forum: PowerShell GUIs
Topic: Best way to present data
Replies: 4
Views: 355

Best way to present data

I have an object array ($data) that outputs like this. a c b b c a b a a c For 'a' I want to present color green 'b' I want to present color yellow 'c' I want to present color Red. In my Form I want to have the colors horizontal like this.. https://i.imgur.com/5YccxwW.png My first thought is datagri...
by mattys
Fri Dec 18, 2020 8:02 am
Forum: PowerShell GUIs
Topic: TreeView Help
Replies: 10
Views: 675

Re: TreeView Help

your sampler helped me understand.

Thank you very much jvierra.
Have a great day!
by mattys
Thu Dec 17, 2020 7:31 pm
Forum: PowerShell GUIs
Topic: TreeView Help
Replies: 10
Views: 675

Re: TreeView Help

You are right, it is coming up empty.
by mattys
Thu Dec 17, 2020 6:51 pm
Forum: PowerShell GUIs
Topic: TreeView Help
Replies: 10
Views: 675

Re: TreeView Help

The node path and path of desired image are the same.

Thanks for help, I will keep working on this task.
by mattys
Thu Dec 17, 2020 5:11 pm
Forum: PowerShell GUIs
Topic: TreeView Help
Replies: 10
Views: 675

Re: TreeView Help

O You mean like this, right?
$picturebox1.image = [System.Drawing.Image]::FromFile($treeview.selectednode.fullpath)

but I get this error- Exception calling "FromFile" with "1" argument(s): "The path is not of a legal form."
by mattys
Thu Dec 17, 2020 3:24 pm
Forum: PowerShell GUIs
Topic: TreeView Help
Replies: 10
Views: 675

Re: TreeView Help

This Function Loads the tree in my form function Load-FolderIntoTree { param([System.Windows.Forms.TreeView]$TreeView, [string]$Directory) #Disable Drawing $TreeView.BeginUpdate() $TreeView.Nodes.Clear() $folderName = [System.IO.Path]::GetFileName($Directory) $root = $TreeView.Nodes.Add($folderName,...
by mattys
Thu Dec 17, 2020 1:39 pm
Forum: PowerShell GUIs
Topic: TreeView Help
Replies: 10
Views: 675

TreeView Help

I have statically created a TreeView with the TreeNode Editor.

Is it possible that when a node is selected to display an image within a picturebox?

Im having difficulty with this relationship.

Thanks in Advance
by mattys
Sun Sep 13, 2020 4:39 pm
Forum: PowerShell GUIs
Topic: Multiple Checkbox use
Replies: 9
Views: 919

Re: Multiple Checkbox use

Yes, Jvierra. Thank you