G
Guest
Problem 1:
I'd like to have a base form, from which a number of other forms derive. A
simple inheritance model using a base form so that the construct can handle
the base one, but offer me the ability to build on top of it without changing
the whole application. Unfortunately, when I create a form, and inherit from
it, the inherited form is a raw .Net form, exposing all the traditional .Net
properties throwing regX errors, and behaving very strangly, causing my
program to die a horrible death.
What's the deal with this? If I can't do this, i'm going to have to build
about 30 different forms and implement a hideously complicated interface set.
:/
Second Problem:
My labels are not exposing their click method in the designer. And if I wire
them up manualy (as they are exposed), it still compiles fine, but the click
event for the Label is never fired. (I'm using the label to save space as I
don't want to use a button, the screen is small enough as it is.)
Is it possible to inherit from label and implement my own version of Label
that does fire the Click event? Without it throwing errors about overriding
methods that I shouldn't be?
Any help would be truly appreciated, before i go mad and throw my monitor
out the window.
Cheers
Tris
I'd like to have a base form, from which a number of other forms derive. A
simple inheritance model using a base form so that the construct can handle
the base one, but offer me the ability to build on top of it without changing
the whole application. Unfortunately, when I create a form, and inherit from
it, the inherited form is a raw .Net form, exposing all the traditional .Net
properties throwing regX errors, and behaving very strangly, causing my
program to die a horrible death.
What's the deal with this? If I can't do this, i'm going to have to build
about 30 different forms and implement a hideously complicated interface set.
:/
Second Problem:
My labels are not exposing their click method in the designer. And if I wire
them up manualy (as they are exposed), it still compiles fine, but the click
event for the Label is never fired. (I'm using the label to save space as I
don't want to use a button, the screen is small enough as it is.)
Is it possible to inherit from label and implement my own version of Label
that does fire the Click event? Without it throwing errors about overriding
methods that I shouldn't be?
Any help would be truly appreciated, before i go mad and throw my monitor
out the window.
Cheers
Tris