Join Anton Delsink for an in-depth discussion in this video Windows Forms with the designer, part of Object Oriented Programming with C#.
- [Instructor] In the previous example,…we created a Windows Forms application all by ourselves,…without using any of the helpful tools…available in Visual Studio.…So now let's take a step further,…and see how our version compares…with what the Visual Studio tools…will do behind the scenes for us.…I will go to my solution, and right click, Add, New Project.…I will pick a Windows Forms application…and I will call it WinFormsDesigner.…
Click Okay.…And notice that it immediately shows us a form.…It's added a class Form1.…Let's take a look at Program.cs.…So just like before, a form is being instantiated.…Says here, new Form1 on line 20.…And so, on line 20, they combine Application.Run…and the creation of the form itself.…But you can, of course, split that out, as before.…So, new Form1, in passing to Run,…means that the lifetime of the form…will actually be used to determine…when to exit from the Run method.…
And so, that's behavior that's described…in the documentation.…And to say new form, we did that before,…Use Application.Run; we did that before,…
- Abstract classes
- Processing text with StreamReader
- IEnumerable and yield return
- Windows Forms controls
- Windows Forms with and without the designer
- Adding, organizing, and testing forms
- Creating classes
Skill Level Intermediate
What you should know1m 10s
1. Theory vs. Practice
2. Examples from .NET
3. Examples from Windows UI
4. Examples from Board Games
5. Examples from the Web
Next steps1m 13s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.