Join Anton Delsink for an in-depth discussion in this video Create and test a second form, part of Object Oriented Programming with C#.
- [Narrator] Now that we have a first form…acting as our view…and user info as our model,…let's add a second form to complete the picture…where we have two forms as the views…interacting with the same data,…the same model,…in this case the user info object.…Right click on the View…and add Windows Form…and we'll name it SecondForm.…I'll make the form a little bit smaller.…And I'll go copy and paste from the first form.…
Double click.…Select the Controls.…Control C.…Go back to SecondForm.…Control V.…And adjust the layout.…See here we have now a SecondForm…called Class SecondForm…and we will modify the event handlish…for the text boxes as before.…Select one.…Press F4.…In the Properties window,…select the Events lightning bolt.…And double click text changed.…
We'll do this for each of the controls.…Go back to the designer.…SecondForm.…F4 on the lightning bolt in Properties.…Exchanged.…Double click.…And one more time,…for the third control.…Same action.…Text exchange.…Double click.…And so as before,…we'll make the assignments.…When the text is changed,…
Author
Released
11/9/2018- 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
- Inheritance
Skill Level Intermediate
Duration
Views
Related Courses
-
Learning C# Algorithms
with Reynald Adolphe1h 28m Beginner -
Learning C#
with Alexander Zanfir3h 4m Beginner -
C# Object-Oriented Programming Tips and Tricks
with Jesse Freeman58m 39s Intermediate
-
Introduction
-
What you should know1m 10s
-
1. Theory vs. Practice
-
Theory vs. practice4m 17s
-
When a carpet is art11m 12s
-
Conclusion1m 34s
-
-
2. Examples from .NET
-
Introduction3m 20s
-
IEnumerable5m 48s
-
IEnumerable and foreach7m 39s
-
File.Open and .Close5m 18s
-
Keyword using5m 44s
-
IEnumerable and yield return7m 14s
-
Conclusion4m 35s
-
-
3. Examples from Windows UI
-
Introduction1m 57s
-
Windows Forms controls4m 12s
-
Application.Run and .Exit3m 29s
-
Inheriting from class Form3m 51s
-
Event handler for control3m 29s
-
Windows Forms MVC5m 41s
-
Adding and organizing forms6m 17s
-
WPF button and event handler3m 55s
-
Conclusion1m 56s
-
-
4. Examples from Board Games
-
Introduction3m 13s
-
Chess game events6m 4s
-
Chess game view4m 28s
-
Apply chess moves6m 30s
-
Update chess model6m 4s
-
Add chess pieces7m 30s
-
Create class ChessMove4m 17s
-
Invoke ChessMove.Try2m 57s
-
Summary of ChessMoves1m 7s
-
-
5. Examples from the Web
-
Introduction3m 4s
-
Write test for use case 13m 22s
-
Write test for use case 35m 17s
-
Implement Content.GetFeed4m 52s
-
Summary1m 17s
-
-
Conclusion
-
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.
CancelTake 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.
Share this video
Embed this video
Video: Create and test a second form