Search found 112 matches
- Wed Apr 27, 2022 10:01 am
- Forum: Former and Future Customers - Questions
- Topic: Fix TreeView control double click
- Replies: 7
- Views: 10717
- Mon Apr 25, 2022 10:39 am
- Forum: Former and Future Customers - Questions
- Topic: Fix TreeView control double click
- Replies: 7
- Views: 10717
Re: Fix TreeView control double click
I can do that but I can this be classified as a bug, not as a feature request? I know that Windows Forms is not something that you created and the bug is inherited. But if there is an easy and straightforward way to fix this, why not do it?
- Tue Apr 05, 2022 6:21 am
- Forum: Former and Future Customers - Questions
- Topic: Fix TreeView control double click
- Replies: 7
- Views: 10717
Re: Fix TreeView control double click
Nope, those solutions didn't work. The main problem is not the 'Expand' on double-click. It's the checkbox check being unregistered. You can clearly see this using my example code when you click on the checkbox but instead of it being checked, TreeViewDoubleClick and NodeMouseDoubleClick events are ...
- Sat Apr 02, 2022 3:23 pm
- Forum: Former and Future Customers - Questions
- Topic: Fix TreeView control double click
- Replies: 7
- Views: 10717
Fix TreeView control double click
- Windows Forms TreeView control has a very ugly bug: https://stackoverflow.com/questions/14647216/treeview-ignore-double-click-only-at-checkbox I'm currently facing the same issue - the working fix for this issue is https://stackoverflow.com/a/15760762 : class NewTreeView : TreeView { protected ove...
- Tue Feb 15, 2022 12:52 am
- Forum: PowerShell GUIs
- Topic: TreeView add nodes asynchronous
- Replies: 14
- Views: 6367
Re: TreeView add nodes asynchronous
It works, thank you! ... The game is to not use complex methods so why you need a job is a mystery. Getting the file list is just the begging of the whole operation. I'm not sure if I can use the same approach as with Get-ChildItem since I'm doing a lot of extra things, there are many loops in the c...
- Mon Feb 14, 2022 10:59 am
- Forum: PowerShell GUIs
- Topic: TreeView add nodes asynchronous
- Replies: 14
- Views: 6367
Re: TreeView add nodes asynchronous
Using Jobs was my first idea to handle the GUI hanging, I don't need them specifically. I'm afraid to use the DoEvents since it has an unpredictable effect on the whole app.
- Mon Feb 14, 2022 6:47 am
- Forum: PowerShell GUIs
- Topic: TreeView add nodes asynchronous
- Replies: 14
- Views: 6367
Re: TreeView add nodes asynchronous
I"m aware that this appears to be PowerShell threading model limitation but is there really nothing that can be done? if the job is not the solution how about runspaces and adding nodes from runspace code? Or using WPF TreeView with DataBinding TreeNode collection updated from the runspace code?
- Mon Feb 14, 2022 5:39 am
- Forum: PowerShell GUIs
- Topic: TreeView add nodes asynchronous
- Replies: 14
- Views: 6367
Re: TreeView add nodes asynchronous
Thanks, I do use tags for associated custom data for eg: Node text is a file basename where the tag contains extra data like fullpath etc. Unfortunately, if I'm testing real-life scenario the form is hanging where the jobtracker is running. I can't move the window/click on the node. code: $TopLevelD...
- Sun Feb 13, 2022 11:42 am
- Forum: PowerShell GUIs
- Topic: TreeView add nodes asynchronous
- Replies: 14
- Views: 6367
Re: TreeView add nodes asynchronous
I missed the pipeline processing, now it looks so simple. Let's see how this will behave when there is more work to do inside Job.Thanks!
- Sun Feb 13, 2022 6:45 am
- Forum: PowerShell GUIs
- Topic: TreeView add nodes asynchronous
- Replies: 14
- Views: 6367
TreeView add nodes asynchronous
Hi, I'm trying to add TreeView nodes asynchronously. I'm using Job Tracker solution but it's not giving me desired results. relevant part of the code: $buttonStartJob_Click={ $buttonStartJob.Enabled = $false #Create a New Job using the Job Tracker $paramAddJobTracker = @{ Name = 'JobName' JobScript ...