creating a base form class

  • Thread starter Thread starter Antuane
  • Start date Start date
A

Antuane

is it possible for me to create a base form class, & then some how configure
VB.NET,
so that when ever i create a new form, it will automatically be based on the
above form class.

i know i can go & manually inherit the above form, but i don't want to keep
doing this,
similarly with the textbox & command button controls.

??
 
Just make a new class that inherits from the base form instead of the
System.Windows.Forms.Form class. You get the user interface and can change
anything with public, friend or private scope. This includes the properties
and locations of the controls with scope access.

--Robby
 
Yes, but for this i'll have to specifically point the location or the base
class i want to use.
What i'd like to do is change the baseclass used in VB.net, so that it will
always use this new baseclass of mine (rather than me having to point out
this baseclass).

I want to override the base class of VB.net (or at least reconfigure it - if
overriding sounds to preposterous).
 
Hi,

Here is where the template is located by default. Maybe modify
it reflect your changes.

C:\Program Files\Microsoft Visual Studio .NET
2003\Vb7\VBWizards\WinForm\Templates\1033

Ken
--------------------------
is it possible for me to create a base form class, & then some how configure
VB.NET,
so that when ever i create a new form, it will automatically be based on the
above form class.

i know i can go & manually inherit the above form, but i don't want to keep
doing this,
similarly with the textbox & command button controls.

??
 
Thanx a lot guys, your replies have been much appreciated & of great value.
Thanx again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top