Windows Forms Applications - Create and Use Multiple Forms

preview_player
Показать описание
By creating a Windows Forms Application with only one Form you may end up with a very complicated GUI. This Tutorial will show how you can create and use Multiple Forms in your WinForms Desktop Application. Then it is much easier to create a logical and structured GUI.

PowerPoint used in the video:

Blog:

YouTube Channel @Industrial IT and Automation ​

Chapters:
00:00 Introduction
00:32 Example 1 - Create and Open Multiple Forms
18:23 Example 2 - Passing Values between Forms
Рекомендации по теме
Комментарии
Автор

This was really helpful for my .NET class assignment. Thank you!

michaelnorton
Автор

At 11:49 you are hiding the main form then at 14:22 you are creating a new instance of the main form. Is that why closing the main app at 16:44 it stays running? wouldn't it make more sense to pass the main form to form 4, then on form 4 create a new instance and set it to the original instance for the main form? That way you only have one instance of the main form in memory, also then when you close the main form it stops it in visual studio. - nevermind that also creates a memory leak... so would the best way to handle that be to use events to trigger the show / hide of the main form?

byronwieneke
Автор

This needs to be done using a proper menu.

itorres