Polymorphism
This sounds like a homework assignment so I'll limit my answer to abstractions with sample code rather than a full solution.It sounds like you have a parent child form structure where you are...
View ArticlePolymorphism
you can put a public variable in form2 and once you initialize the form2 you can set the values inside your textbox into that variable.For example:In form2:public Class Books{public string No...
View ArticlePolymorphism
Personally, I prefer to keep windows working separately.If you reach out and grab controls in one window from another then you're creating a dependency between the two.This breaks encapsulation.If the...
View ArticlePolymorphism
If you set the Modifiers property of the TextBoxes to Public or Internal in Form1 you could access them directly from the event handler in Form2: private void dataGridView1_CellClick(object sender,...
View ArticlePolymorphism
I have two forms.Form 1: BookIssue It has following textboxes:-(a) Book No:(b) Book Title:(c) Search Book (button)Form2: BooksInLibrary(a) Datagridview to show list of books available in...
View Article
More Pages to Explore .....