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.

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 8 years and 1 month 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.
Locked
User avatar
SABeShnik
Posts: 13
Last visit: Wed Nov 16, 2016 3:25 am

create a new form by clicking on the button

Post by SABeShnik »

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
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: create a new form by clicking on the button

Post by jvierra »

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
Last visit: Wed Nov 16, 2016 3:25 am

Re: create a new form by clicking on the button

Post by SABeShnik »

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.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: create a new form by clicking on the button

Post by jvierra »

Helo sabeshniks

Try this topic for some solutions: viewtopic.php?f=21&t=9725
This topic is 8 years and 1 month 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.
Locked