Inherited form is not present in VB 2005 express

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
 
T

Teemu

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
 
T

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
 

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

Top