Hi, can anyone start me off or provide an example of a combox box that does the following. I have tried the spotlights but i am still struggling.
Basically have a combo box listing domain so for example d1, d2, d3
which ever domain is selected you hit a button and it does something such as get-aduser *
Thanks
Combobox example
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.
- SAPIEN Support Forums
- Posts: 945
- Last visit: Thu Oct 22, 2015 1:10 pm
Combobox example
This is an automated post. A real person will respond soon.
Thank you for posting, ianstraw.
Did you remember to include the following?
*** Make sure you do not post any licensing information ***
Thank you for posting, ianstraw.
Did you remember to include the following?
- 1. Product, version and build (e.g. Product: PowerShell Studio 2014, Version & Build: 4.1.71. Version and build information can be found in the product's About box accessed by clicking the blue icon with the 'i' in the upper right hand corner of the ribbon.)
2. Specify if you are running a 32 or 64 bit version
3. Specify your operating system and if it is 32 or 64 bit.
4. Attach a screenshot if your issue can be seen on the screen
5. Attach a zip file if you have multiple files (crash reports, log entries, etc.) related to your issue.
*** Make sure you do not post any licensing information ***
Re: Combobox example
I want a combo box that lists several domains. once the required domain is selected a button is pressed that then runs some code on that domain that was selected.
Re: Combobox example
What is it that you cannot figure out? Have you tried to build a form? What part don't you understand?
Try this: https://www.sapien.com/blog/?s=combobox
Try this: https://www.sapien.com/blog/?s=combobox
Re: Combobox example
I have created the form and the combo box. I have populated the combox box with the domains. What i cant figure out is how to take the domain selected in the box and run the code on that domain. If you have 3 domains dc1,dc2,dc3 where in the code is this stored? how do you take that value and run it with some other code.
Re: Combobox example
Where is what stored? The combobox has the strings you have placed in it.
The current value of the combobox is in the "Text" property.
Did you read the blog article. It explains how to use the combobox.
The current value of the combobox is in the "Text" property.
Did you read the blog article. It explains how to use the combobox.
Re: Combobox example
Yes ive read every blog re this hence the reason im asking for help.
To reiterate...
The combox box has a selection of domains which are the "strings"
When a user selects one of these domains from the drop down box and clicks a GO button it performs an action such as get-aduser *
I need to understand how the code works. So it the user selects domain 1 from the combo box and does that then feed into the action of get-aduser *
Thanks
To reiterate...
The combox box has a selection of domains which are the "strings"
When a user selects one of these domains from the drop down box and clicks a GO button it performs an action such as get-aduser *
I need to understand how the code works. So it the user selects domain 1 from the combo box and does that then feed into the action of get-aduser *
Thanks