Search found 14 matches

by mmmoi5
Wed Dec 19, 2018 3:29 am
Forum: PowerShell
Topic: ThreadOptions ReuseThread not working
Replies: 7
Views: 3372

Re: ThreadOptions ReuseThread not working

When the statement is made from a PS console it works fine, it is only when passed via the EXE file that it reports what I previously stated. Looking for an explanation to explain that behavior. You stated that the host does not support or implement runspace property. But it does in a PS console, wh...
by mmmoi5
Wed Dec 12, 2018 11:43 am
Forum: PowerShell
Topic: ThreadOptions ReuseThread not working
Replies: 7
Views: 3372

ThreadOptions ReuseThread not working

Hi, When I use Sapien products to generate an EXE file of the PowerShell script, the $Host.Runspace.ThreadOptions = "ReuseThread" stops working and it is reporting "The property 'ThreadOptions' cannot be found on this object. Verify that the property exists and can be set" Is it ...
by mmmoi5
Sun Nov 12, 2017 10:12 pm
Forum: PowerShell GUIs
Topic: Does anyone have a working example of selectedindexchanged (combobox)
Replies: 14
Views: 5884

Re: Does anyone have a working example of selectedindexchanged (combobox)

I agree, but you were not very far off and your proposed solution was the correct one.
I did view the example, that did help.
Thanks
by mmmoi5
Sun Nov 12, 2017 2:23 pm
Forum: PowerShell GUIs
Topic: Does anyone have a working example of selectedindexchanged (combobox)
Replies: 14
Views: 5884

Re: Does anyone have a working example of selectedindexchanged (combobox)

I am familiar with the formulation of this content (corrected for what I believe was a typo on your behalf) $items = if ($this.Text -eq 'ListOfLetters'){@('A','B','C')}else{@('1','2','3')} $comboBox2.Items.Clear() $comboBox2.Items.AddRange($items) The problem resides in the fact that the event is no...
by mmmoi5
Sun Nov 12, 2017 12:42 pm
Forum: PowerShell GUIs
Topic: Does anyone have a working example of selectedindexchanged (combobox)
Replies: 14
Views: 5884

Re: Does anyone have a working example of selectedindexchanged (combobox)

This is what I like about your efforts, you never give up on us seeking to learn, and for that thank you. But yes I am aware of the fact that they are numbered progressively as one adds objects from the toolbox. But I believe the system is struggeling with the fact that combobox1 has no property nam...
by mmmoi5
Sun Nov 12, 2017 12:18 pm
Forum: PowerShell GUIs
Topic: Does anyone have a working example of selectedindexchanged (combobox)
Replies: 14
Views: 5884

Re: Does anyone have a working example of selectedindexchanged (combobox)

I did used the proposed Method and adapted it to my needs (that is what I meant with code).
The proposed method starts off with "comboBox1.SelectedIndexChanged" which is a none existing property.
by mmmoi5
Sun Nov 12, 2017 9:26 am
Forum: PowerShell GUIs
Topic: Does anyone have a working example of selectedindexchanged (combobox)
Replies: 14
Views: 5884

Re: Does anyone have a working example of selectedindexchanged (combobox)

I attempted the proposed code and I get
ERROR: The property 'SelectedIndexChanged' cannot be found on this object. (which is reasonable since it does not exist)
by mmmoi5
Sun Nov 12, 2017 6:58 am
Forum: PowerShell GUIs
Topic: Does anyone have a working example of selectedindexchanged (combobox)
Replies: 14
Views: 5884

Re: Does anyone have a working example of selectedindexchanged (combobox)

Thank you, I came across that one before not exactly what I was looking for or maybe I am missing something, but thanks for the headsup. My combobox1 is "ListOfNumbers","ListOfLetters" My combobox2 is either list "1","2","3" or "A","B&...
by mmmoi5
Sun Nov 12, 2017 2:19 am
Forum: PowerShell GUIs
Topic: Does anyone have a working example of selectedindexchanged (combobox)
Replies: 14
Views: 5884

Does anyone have a working example of selectedindexchanged (combobox)

I need the Form GUI to automatically load one of two lists into combobox2 when a Choice is made in combobox1.
I have read about selectedindexchanged but I cannot seem to automate that without a refresh button.

Anyone have a working example of how to achieve this.

Thanks
by mmmoi5
Tue May 30, 2017 12:10 am
Forum: PowerShell GUIs
Topic: responsive forms
Replies: 10
Views: 3934

Re: responsive forms

That was without a doubt an eye opener. The Logic presented in your sample helps to better understand the sequence of how things progress. I cannot say that I have unlocked the full portential of the jobtracker but I have for the first time in days the feeling that I actually understand this :D Than...