How to open Form2 from Form1 in WIndows Form Application | C# Windows Form

preview_player
Показать описание
#csharp #windowsformapp #form

In this lecture you will work with more than one Form control. We will program to learn Form2 from Form1. In .NET we can open another Form as dialog either one of two ways, modeless dialog and modal dialog.

When when open another form as modeless dialog Show() method is used.
When we open another form as modal dialog ShowDialog() method is used.

In both the cases you need need an instance variable of the Form (form2) to call is from Form1.

Don't forget to like the video and subscribe the channel.

Check the playlist How to C# Windows Form more tutorial on C# .NET programming. Here is the link:

Regards
#smartcode
Рекомендации по теме
Комментарии
Автор

How to use template button at the top of every page in order to change page and it have main page when open .exe file ?

vorapobautomation