Search found 67 matches

by angelofstealth
Mon Mar 11, 2019 6:01 pm
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 1295

Re: Treeview - Node - Property (Plus/Minus)

I agree, I have tested with your example and it does not freeze the GUI. But it does not give any indication of nodes having nodes/childnodes under them. The only way you can know is by clicking on the OU/childnode. When you have a very large Active Directory environment with cascading OU's that bec...
by angelofstealth
Mon Mar 11, 2019 1:05 pm
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 1295

Re: Treeview - Node - Property (Plus/Minus)

I see it now, i am pre-creating it in the Add-Node function.
by angelofstealth
Mon Mar 11, 2019 12:29 pm
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 1295

Re: Treeview - Node - Property (Plus/Minus)

The point of using the job is so the GUI does not freeze(not responding) during a lookup that is taking a long time to return due to too many objects being returned. In regards to the issue, if you comment out the clear in the else statement in CompletedScript you will see the default object get cre...
by angelofstealth
Mon Mar 11, 2019 12:01 pm
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 1295

Re: Treeview - Node - Property (Plus/Minus)

Looks like I got most of it working with a job, only issue seems when loading the treeview. When I click the node it loads the default imageindex[0] with a blank name. I clear this if the objects returns are zero from the job. Wondering if there is a way to stop the treeview from display the progres...
by angelofstealth
Fri Mar 08, 2019 2:50 pm
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 1295

Re: Treeview - Node - Property (Plus/Minus)

Understand, appreciate explaining/attaching the link. I like this method of loading the nodes as it is fast and doesn't hang the GUI. Reading/referencing the following link below with Dan potter example the GUI will hang if the OU has a lot of objects (organization units / containers ). I like the c...
by angelofstealth
Thu Mar 07, 2019 2:23 pm
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 1295

Re: Treeview - Node - Property (Plus/Minus)

For the childnodes loaded after the click, these childnodes that have childnodes don't show having plus/minus. Only after clicking the childnodes will the next childnodes show is the point i am trying to make. Instead of clicking the parent node, load childnodes and display childnodes that have chil...
by angelofstealth
Thu Mar 07, 2019 1:56 pm
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 1295

Re: Treeview - Node - Property (Plus/Minus)

I agree it should be added automatically, i stated that in my first message.

In your attached psf, if I change the form property showplusminus from false (what is was) to true and run the code. It does not show a plus symbol on my end for C:\.
by angelofstealth
Thu Mar 07, 2019 1:28 pm
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 1295

Re: Treeview - Node - Property (Plus/Minus)

I think i am going to adjust the way i load in the values with the node mouse click. Appreciate the help , should be good from here.
by angelofstealth
Thu Mar 07, 2019 1:03 pm
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 1295

Re: Treeview - Node - Property (Plus/Minus)

Is there not a way to add the show plus/minus on adding the node vs on click? As with the psf attached my code is doing the same thing by showing the dropdown/plus after a click and not when the nodes are added.
by angelofstealth
Thu Mar 07, 2019 11:55 am
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 1295

Treeview - Node - Property (Plus/Minus)

Is there a way to force or add a property to add the ShowPlusMinus to a treeview node? Example code below, works fine as far as loading in the objects in the treeview and clicking down through the treeview. Just none of my dropdowns will have Plus or Minus, the property is set by default to true and...