Support Forums

create a new form by clicking on the button

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.
User avatar
SABeShnik
Posts: 13
Joined: Wed Jan 27, 2016 1:53 pm

create a new form by clicking on the button

Postby SABeShnik » Wed Feb 10, 2016 1:28 am

Hi guys!

OS: Win7x64
Soft: PS 2015x86
My Project = New -> New Form Project (in "New" menu there is no item *multi*)
Help please create a new form by clicking on the button on current project.
The form with RichTextBox + CheckBox
User avatar
jvierra
Posts: 10021
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: create a new form by clicking on the button

Postby jvierra » Wed Feb 10, 2016 2:08 am

Just call the form with Call_formname_psf.
See help for projects.

https://www.sapien.com/blog/2013/10/01/ ... ing-forms/
User avatar
SABeShnik
Posts: 13
Joined: Wed Jan 27, 2016 1:53 pm

Re: create a new form by clicking on the button

Postby SABeShnik » Wed Feb 10, 2016 11:47 pm

Hi jvierra! Glad to see here.

I looked your link, thanks, but ... not all worked :(

In the main project added a new blank form.
On a new blank form added RichTextBox.
Want pressing the button in the main form - start a new form and cmdlet displays the result in a RichTextBox in this new form.

Now I have a pressing the button on the main form - start a new form with a RichTextBox, but the values are not displayed.

If there is a little time - tell me how to do it right.
User avatar
jvierra
Posts: 10021
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: create a new form by clicking on the button

Postby jvierra » Thu Feb 11, 2016 12:58 am

Helo sabeshniks

Try this topic for some solutions: viewtopic.php?f=21&t=9725

Return to “PowerShell GUIs”

Who is online

Users browsing this forum: No registered users and 3 guests