Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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.
This topic is 6 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Hello,
I created simple form for creating a users at AD. it's works correctly, but if i add Tab control and put this script at second tab sript doesn't work
Ok, i have a script (disinger in attachment). Some later i want add Tab control and at second tab write new script.
(second attachment). If i use scripts alone both works fine. But if i put second script at TAB control (page #2) it's doesn't work.
What doesn;t wokr: When i select departments (if i select accounting, operations or Sales) must be do visible new combobox $combobox_City. And it's doesn,t work.
I have a control combobox. Event - SelectedIndexChanged.
If i select some values in this combobox - another combobox be visible (by default it's invisible).
It's work fine at alone form. But if i add to another form control - "Tab control" and at Page2 make same control from first form (same name) and make same script code, this action (visible or invisible) doesn't work.
We cannot be of any help from simple statements about your code.
You cannot have two controls with the same name in the same container. The variable for the tab version will be different from the first one you created. Find the correct control variable and it should work.
This topic is 6 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.