Join Anton Delsink for an in-depth discussion in this video Inheriting from class Form, part of Object Oriented Programming with C#.
- [Instructor] Now that we've seen…how to create a Windows Forms application…from nothing, let's try to organize…our code a little bit better.…As you can see in our previous example,…we have just created the objects that we needed,…set their properties, added event handlers…but it's all in the same initial method…that we use to create the application.…And so that's not going to be sustainable…when we start dealing with dozens, perhaps hundreds…of forms and certainly thousands of controls…on those forms.…So let's go into our project…on WinFormsBasics.…
I'll right click, add class.…I will call this class MyForm.…I'll save all.…I'll build.…Control shift B to build.…Now here on my form, notice in the project…it just has the C sharp icon here.…And so on line nine, when I put colon form.…Control dot to add the using system Windows forms.…I'll save, I'll build.…
Come back into my project and see what's happened…on the right, it changed the icon.…So the Windows forms class also has an interaction…with visual studio.…There is a visual designer for working with…
- 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.