Inherited form is not present in VB 2005 express

  • Thread starter Thread starter kimiraikkonen
  • Start date Start date
K

kimiraikkonen

Hi,
There's no inherited form icon in project -> add window in order to
use "inheritance picker" in VB 2005 "express". So how could i use my
express edition-based apps to inherit? I hope using inheritance picker
is not unique solution, any additional codes can do that eg:
"inherits" statement?

Thanks
 
kimiraikkonen said:
Hi,
There's no inherited form icon in project -> add window in order to
use "inheritance picker" in VB 2005 "express". So how could i use my
express edition-based apps to inherit? I hope using inheritance picker
is not unique solution, any additional codes can do that eg:
"inherits" statement?

I've read a very nice article about this but I can't find it now.

Here are some steps to start with:

1. Create a new form to be inherited
2. Open code view
3. Select for example Form2 and InitializeComponent
4. In the beginning of the view there's this line:

Inherits System.Windows.Forms.Form

Change it to:

Inherits Form1

5. Save the file and build your project
6. Form2 should be inherited now

(7. If you want to move controls, open Form1's InitializeComponent and
change Friend declarations to Protected Friend)

-Teemu
 
I've read a very nice article about this but I can't find it now.

Here are some steps to start with:

1. Create a new form to be inherited
2. Open code view
3. Select for example Form2 and InitializeComponent
4. In the beginning of the view there's this line:

Inherits System.Windows.Forms.Form

Change it to:

Inherits Form1

5. Save the file and build your project
6. Form2 should be inherited now

(7. If you want to move controls, open Form1's InitializeComponent and
change Friend declarations to Protected Friend)


Were you able to create inherited form with these instructions or do you
need more detailed information?

-Teemu
 
Back
Top