General information
Category:
Object Oriented Programming
I ve finally worked out how to inherit a form in visual studio C#
Got a few problems
ONE
If i have a button in my base class How do I stop that button from working in the base class. I may need its inheritance in some of its inherited forms but not others so I neeed to disable it in the child form
Example
MY BASE FORM
btnMessage_Click
messagebox_Show("Base Class");
(I sometimes want this message to appear)
INHERITED FORM
btnMessage_click
messagebox_Show("Child Class");
I sometimes want this message (or Event) to fire as well as the BaseClass Event OR (and this is what I dont know) NOT FIRE THE BASE CLASS EVENT
It defaults to running both
TWO
I have a lot of events in my BASE FORM
I subclass the form and want to add EVENTS to the new class that either use the BASECLASS events, or rely on results from that BaseClass
THREE
I have an event in my BASECLASS that i want to overide in my ChildForm
There are a number of other questions but I may be able to work it out from the above answers
Thanks in advance
Richard
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only