Search found 11743 matches

by jvierra
Fri Jan 19, 2018 6:54 am
Forum: PowerShell GUIs
Topic: Switch statement
Replies: 11
Views: 255

Re: Switch statement

We would not use a switch statement. Use a ComboBox or ListBox loaded from a CSV file. A ComboBox will set itself according too the value it is bound to.
by jvierra
Fri Jan 19, 2018 5:26 am
Forum: PowerShell GUIs
Topic: Switch statement
Replies: 11
Views: 255

Re: Switch statement

What is your question or are you just discussing what you would like to do?
by jvierra
Thu Jan 18, 2018 5:13 pm
Forum: PowerShell GUIs
Topic: Newbie form questions
Replies: 32
Views: 501

Re: Newbie form questions

Add the "param statement to the form at the top. After you build the exe this will accept your parameters. To understand how to use PowerShell and the "Param" statement see: https://www.sapien.com/forums/viewtopic.php?f=21&t=6451 For specifics on "Param" see: https://www.sapien.com/forums/viewtopic....
by jvierra
Thu Jan 18, 2018 3:57 pm
Forum: PowerShell GUIs
Topic: Newbie form questions
Replies: 32
Views: 501

Re: Newbie form questions

Command line parameters in PowerShell are retrieved via a "Param" statement or via the built-in $args variable.

http://www.itprotoday.com/management-mo ... ell-params
by jvierra
Thu Jan 18, 2018 3:11 pm
Forum: PowerShell GUIs
Topic: Newbie form questions
Replies: 32
Views: 501

Re: Newbie form questions

Cody has shown a brute force method but there are other ways to do this. Cody's method removes everything. The individual buttons can be removed and the form frame type can also be changed to accomplish this. You can also just create the original form by creating a "Dialog Form" from the templates l...
by jvierra
Thu Jan 18, 2018 2:21 pm
Forum: PowerShell GUIs
Topic: Newbie form questions
Replies: 32
Views: 501

Re: Newbie form questions

You cannot access a form from the command line while the form is displayed. You could not have read all of the information in such a short time. One of the suggestions was to go through each control and become familiar with the control. A form is a control. Familiarize yourself with the "Properties"...
by jvierra
Thu Jan 18, 2018 12:57 pm
Forum: PowerShell GUIs
Topic: Newbie form questions
Replies: 32
Views: 501

Re: Newbie form questions

Hi and welcome to Windows Forms. Wow! A bunch of questions. I am sure you will have a hundred more. Before trying to ask for every step in designing a form you need to review the basics of forms creation. Here is a good article that will help you get started. If you look at the left menu there are a...
by jvierra
Thu Jan 18, 2018 11:26 am
Forum: PowerShell GUIs
Topic: Checkedlistbox Highlighting
Replies: 3
Views: 147

Re: Checkedlistbox Highlighting

Sorry. I was thinking of WPF.

You can't turn off the hilite.
by jvierra
Thu Jan 18, 2018 11:11 am
Forum: PowerShell GUIs
Topic: Checkedlistbox Highlighting
Replies: 3
Views: 147

Re: Checkedlistbox Highlighting

Change hilite to control background color.