Quantcast
Channel: Polymorphism
Browsing latest articles
Browse All 6 View Live

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 Article



Polymorphism

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 Article

Polymorphism

Nope.. this does not help.

View Article

Polymorphism

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 Article

Image may be NSFW.
Clik here to view.

Polymorphism

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 Article


Image may be NSFW.
Clik here to view.

Polymorphism

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
Browsing latest articles
Browse All 6 View Live




Latest Images