Join Anton Delsink for an in-depth discussion in this video Windows Forms without the designer, part of Object Oriented Programming with C#.
- [Instructor] Now that we have a very simple…Windows Forms application, let's elaborate it somewhat…so that there's more of an…interactive experience with the user.…So between instantiating the form and showing the form,…let's add some more objects.…In this case, I'll create a button object, of type button,…and on the button object, we have a property text.…This determines the text being displayed…on the face of the button.…However at this point we just have two objects.…They do not know about each other.…
And so here is a part of Windows Forms that…you need to know about rather…than object orientation in particular.…The way visual layouts are combined here…is that a form has a property called controls.…Type form included a property called controls,…and what you'll see here is the collection…is of type control and button inherits from control.…And so we can add buttons and other types that inherit…from control to the control's collection.…
So controls.Add(btn).…And because button inherits from control,…it can be added to the control's collection,…
- 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
C# Object-Oriented Programming Tips and Trickswith Jesse Freeman58m 39s 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.