Link to home
Start Free TrialLog in
Avatar of tamilsoft
tamilsoft

asked on

how to do whenever i add windows form my custom class should be inherited automatically ?

every time while I add windows form  from project menu. automatically my custom class should be inherited as derive ?
what to do ?
is any  other way available for this purpose ?
how many no of ways available to fullfill my purpose ?
Avatar of Kelvin McDaniel
Kelvin McDaniel
Flag of United States of America image

in the class definition add "Inherits {the type}"

So it looks like this...
Public Class YourDerivingClassName
    Inherits YourBaseClassName

    '' The class code

End Class

Open in new window

SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tamilsoft
tamilsoft

ASKER

ok. your answer is very very  correct.

my aim is I have my own custom class named "funs". whenever I add new windows form into my project, automatically my own class should be inherited as default, because I have 30 or 40  forms in my project.
is there alternative ways available ?
is there any readymade steps available ?
 
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial