Can someone please explain how I can add an inherited form in VB.Net express 2005 ?
Printable View
Can someone please explain how I can add an inherited form in VB.Net express 2005 ?
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.
/idiot mode off.....
Thanks JMC :thumb:
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.Quote:
Originally Posted by Tinbeard