Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Inheritance
Message
From
09/11/2006 06:57:25
 
 
To
All
General information
Forum:
ASP.NET
Category:
Object Oriented Programming
Title:
Visual Inheritance
Miscellaneous
Thread ID:
01168385
Message ID:
01168385
Views:
60
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
Map
View

Click here to load this message in the networking platform