Multiple Comboboxes with One XML
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Multiple Comboboxes with One XML
If I run the example I posted it works correctly. Did you change it? If you change it i will probably fail if you do not understand what is happening.
Re: Multiple Comboboxes with One XML
Interestingly it seems it didn't work due to my version being just out of date?
Also I needed to put
$xml = [xml](get-content d:\exercise.xml)
Within the "$combobox1_selectedIndexChnaged=" section as well but this was because I had put my XML within the Form1_load rather than before that.
Thank you for your help
Also I needed to put
$xml = [xml](get-content d:\exercise.xml)
Within the "$combobox1_selectedIndexChnaged=" section as well but this was because I had put my XML within the Form1_load rather than before that.
Thank you for your help
Re: Multiple Comboboxes with One XML
I meant for you to run my form until you figured out how it worked. The form I posted worked perfectly but would require a current version of PSS.
Where you put the XML is unimportant. but it must be scoped to the script. Placing it in a load operation is ok but use a scope.
[xml]$script:xml = get-content d:\exercise.xml
loading outside of an event automatically scopes it to the whole form.
The more important piece is how to get the fist combo to know what to look for to load the second combo.
Where you put the XML is unimportant. but it must be scoped to the script. Placing it in a load operation is ok but use a scope.
[xml]$script:xml = get-content d:\exercise.xml
loading outside of an event automatically scopes it to the whole form.
The more important piece is how to get the fist combo to know what to look for to load the second combo.