Search found 28 matches

by toddkenn@gmail.com
Tue Oct 09, 2018 11:38 am
Forum: PowerShell GUIs
Topic: How to add controlset to a form programatically
Replies: 2
Views: 1150

How to add controlset to a form programatically

Hi - I know this is probably a stupid question, but I can't seem to wrap my head around how I can click a button which will add a specific set of controls. I know you can create controlsets and then add them for reuse but I was looking to kind of leverage that feature and create something dynamic, k...
by toddkenn@gmail.com
Mon Jul 17, 2017 7:22 am
Forum: PowerShell Studio
Topic: After update to .141 I now get a JIT Debgger error
Replies: 7
Views: 3057

Re: After update to .141 I now get a JIT Debgger error

ok so I found the issue and I also added your suggestion to check if the subitems exist before doing something with them. The problem was a typo in the variable being passed to the function, so the variable was empty going into the function and trying to operate on a null list view. Thanks for the a...
by toddkenn@gmail.com
Fri Jul 14, 2017 7:09 am
Forum: PowerShell Studio
Topic: After update to .141 I now get a JIT Debgger error
Replies: 7
Views: 3057

Re: After update to .141 I now get a JIT Debgger error

So I see the function that contains the code that is the cause of the issue I'm calling a function I created to remove subitems from a listview collection Cleanup-ExistingStatus -listiviewitems $listiviewItems function Cleanup-ExistingStatus { param ( [object]$listiviewitems ) $listviewitems | ForEa...
by toddkenn@gmail.com
Thu Jul 13, 2017 11:42 am
Forum: PowerShell Studio
Topic: After update to .141 I now get a JIT Debgger error
Replies: 7
Views: 3057

Re: After update to .141 I now get a JIT Debgger error

it does occur when also running from a console. I can upload the script but there are some dependencies with external DLLs and some additional script files. Might be a bit too much to upload
by toddkenn@gmail.com
Thu Jul 13, 2017 8:50 am
Forum: PowerShell Studio
Topic: After update to .141 I now get a JIT Debgger error
Replies: 7
Views: 3057

After update to .141 I now get a JIT Debgger error

Product, version and build: (*** Please do not write "latest" as a version, specify a version number ***) 32 or 64 bit version of product: 64 Operating system: 32 or 64 bit OS: 64 PowerShell Studio 2017 v5.4.141 I'm getting a JIT Debugger error now when running my Form? I just updated to 1...
by toddkenn@gmail.com
Fri Jun 16, 2017 10:03 am
Forum: PowerShell GUIs
Topic: How Do I update an Existing Controlset?
Replies: 4
Views: 2560

Re: How Do I update an Existing Controlset?

For the sake of cleanup it might be a good idea to incorporate the added events from a controlset into their region markers. It makes it much easier to clean up if your trying different settings to beable to colapse the region that all the added events are in and just delete it that way rather than ...
by toddkenn@gmail.com
Fri Jun 16, 2017 7:16 am
Forum: PowerShell GUIs
Topic: How Do I update an Existing Controlset?
Replies: 4
Views: 2560

How Do I update an Existing Controlset?

If I create my own controlset is there some easier way of updating it other than reselecting everything and going through the process of initial creation and overwrite the existing controlset?
by toddkenn@gmail.com
Thu Jun 15, 2017 12:08 pm
Forum: PowerShell GUIs
Topic: Saving the "properties" state/values of all controls
Replies: 4
Views: 2141

Re: Saving the "properties" state/values of all controls

Ah that sounds like such a better solution, I was going down the road of using the Deselecting event of a tab to save all the controls to an xml file using Export-CliXml. But I like your idea better. Boy I really like a community of people helping each other. Thanks! PS. I assume by Custom Controls ...
by toddkenn@gmail.com
Thu Jun 15, 2017 11:34 am
Forum: PowerShell GUIs
Topic: Saving the "properties" state/values of all controls
Replies: 4
Views: 2141

Re: Saving the "properties" state/values of all controls

Yes it does sound odd but it works like this. You determine which tab is the selected tab and then change the controls that you want to be shown on that tab "shared" by setting which tab is the parent control. Showthing this this: $tabcontrol1_SelectedIndexChanged={ if (($tabcontrol1.Selec...
by toddkenn@gmail.com
Thu Jun 15, 2017 10:53 am
Forum: PowerShell GUIs
Topic: Saving the "properties" state/values of all controls
Replies: 4
Views: 2141

Saving the "properties" state/values of all controls

Hi Guys, I'm currently using a tabcontrol and using the same controls on multiple tabs. One problem is that wehn I switch to one of the other tabs I want to clear all the controls values and start fresh with an initial state, but and heres the kicker I want to be able to switch back to the previous ...