how to inherit my own class with all buttons and forms in vb.net

I have written my own custom class "BasicFunctions" in vb.net.
I must inherit this class with  both of all buttons and all forms in my project.
what is the ways ?

I write my own customize buttons and forms like following.

public class mybutton
inherits button
end class

public class myform
inherits form
end class

what are the ways available with above coding and without above coding ?
tamilsoftAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nepaluzCommented:
what exactly do you want to dowith the class?
1. Make it available in the designer?
2. Utilize the controlsin the class on the fly?
0
tamilsoftAuthor Commented:
I dont understand your comment.

My aim is I must inherit my own classs "BasicFunctions"   with   any buttons and  any window forms.
 how to inheirts with all controls ?
0
käµfm³d 👽Commented:
My aim is I must inherit my own classs "BasicFunctions"   with   any buttons and  any window forms.
Your goal is unclear. Inheriting buttons makes sense, but inheriting "any window forms" does not. What do you mean by inherit "any window forms"?

For inheriting buttons, it's quite simple:  add the pertinent buttons to the base form. When you inherit this base form, all the of the buttons you added to the base form should be accessible in the child form.
0
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

tamilsoftAuthor Commented:
look my first question.

I have written my own class  "BasicFunctions.vb".  
I have created my own class named mybutton.vb.  it  inherits button. look my first question.
I have created my own class named myform.vb.  it inherits form. look my first question.  

BasicFunctions class should be inherited to myform.
BasicFunctions class should be inherited to mybutton.
how to achieve it ?

 
0
käµfm³d 👽Commented:
What kinds of things do the functions in BasicFunctions.vb do?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tamilsoftAuthor Commented:
InputValidityStatus()
NoOfAttemptsforInputs()

BasicFunctions.vb has like above functions.

I want to inherit  this class  any of my custom input controls like(MyTextBox, MyComboBox,etc)

public class mytextbox
inherits textbox
end class

public class MyComboBox
inherits ComboBox
end class

how to do  ?

0
AmbusyCommented:
you cannot have multiple inheritance in .NET. Read  this:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.