Search found 12150 matches

by jvierra
Fri May 18, 2018 1:20 pm
Forum: PowerShell GUIs
Topic: Closing a form in code
Replies: 2
Views: 130

Re: Closing a form in code

$form.Close()
by jvierra
Fri May 18, 2018 7:18 am
Forum: PowerShell GUIs
Topic: Hide button
Replies: 1
Views: 88

Re: Hide button

That is what the "Validated" event is for. Validate in "Validating" event and enable the button in the "Validated" event.
by jvierra
Thu May 17, 2018 11:34 am
Forum: Windows PowerShell
Topic: Combining two cell values and checking Active Directory.
Replies: 11
Views: 386

Re: Combining two cell values and checking Active Directory.

Easier than you first though. Glad you got it to work.
by jvierra
Thu May 17, 2018 9:15 am
Forum: PowerShell GUIs
Topic: dynamically create gui elements based on csv contents.
Replies: 10
Views: 336

Re: dynamically create gui elements based on csv contents.

luk4mu5 wrote:
Thu May 17, 2018 8:58 am

similar to a websites product page:
Image
You can use HTML in a form to display paged data. It can look just like a Staples page.
by jvierra
Thu May 17, 2018 9:14 am
Forum: PowerShell GUIs
Topic: dynamically create gui elements based on csv contents.
Replies: 10
Views: 336

Re: dynamically create gui elements based on csv contents.

Don't think of the subform as a subform but as a dynamically generated form. The same methods work in any form.
by jvierra
Thu May 17, 2018 8:49 am
Forum: PowerShell GUIs
Topic: dynamically create gui elements based on csv contents.
Replies: 10
Views: 336

Re: dynamically create gui elements based on csv contents.

Did you look at the article I posted a link to. The subform I create is dynamic and generates the controls from the data. It will generate as many controls as needed for the current data record. It can be repeated. I think your design may be a bit off and will be cumbersome. Use one form and databin...
by jvierra
Thu May 17, 2018 8:26 am
Forum: PowerShell GUIs
Topic: dynamically create gui elements based on csv contents.
Replies: 10
Views: 336

Re: dynamically create gui elements based on csv contents.

Simple. Just assign the CSV items to the controls. Assigning an image url to a picturebox will change the image. Assign text property on labels and textboxes.
by jvierra
Thu May 17, 2018 7:37 am
Forum: Windows PowerShell
Topic: Combining two cell values and checking Active Directory.
Replies: 11
Views: 386

Re: Combining two cell values and checking Active Directory.

Which part are you saying no to? So, should i collect all of the rows in the Datagrid and run a foreach loop for each row and pull out the first two cells per row? So in turn that variable will hold the Firstname and Lastname. Then take that variable and check Active Directory? Yes. Paint is not us...
by jvierra
Thu May 17, 2018 7:08 am
Forum: PowerShell GUIs
Topic: dynamically create gui elements based on csv contents.
Replies: 10
Views: 336

Re: dynamically create gui elements based on csv contents.

You can do many things to generate forms from data but it is a very advanced set of techniques. Mostly you will need to determine what the panel looks like. I find this is best done with a paper and pencil. Grid paper is the best. Once you have thought out what your panel looks like then just build ...