|
-
Mar 13th, 2006, 04:49 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Visual inheritance ?
Can someone please explain how I can add an inherited form in VB.Net express 2005 ?
-
Mar 13th, 2006, 05:27 PM
#2
Re: Visual inheritance ?
Add a form to your project. Close its design window. Press the "Show all files" button in the Solution Explorer. Open the .designer.vb file for the new form. Change the base class from System.Windows.Forms.Form to your desired form. Rebuild the project. Open the new form in the designer and you should find the inherited controls present.
-
Mar 14th, 2006, 04:02 AM
#3
Thread Starter
Hyperactive Member
Re: Visual inheritance ?
/idiot mode off.....
Thanks JMC
-
Mar 14th, 2006, 04:10 AM
#4
Re: Visual inheritance ?
 Originally Posted by Tinbeard
/idiot mode off.....
Thanks JMC 
Not so idiotic. I tried doing just that in VS.NET 2003 a long time ago and weird things happened. The "Add Inherited Form" option did something to prevent that, although I never investigated exactly what. I don't know about VS 2005 Pro but as you see Express lacks that option, so i figured I'd give the manual option a try and it seems to work. I always recommend not touching the auto-generated code unless you really need to but here's a legitimate reason to touch it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|