I have inherited forms in the application I am currently working on - and
they have both a Visual Designer and a "code" class. Indeded visual
inheritance woudl be pointless without this !
One suggestion - the class "behind the form" does not have to be the same
name as the form - ensure you are inheriting from the Form.
For example :
* crate and open a new form, say Form1.vb in Solution Explorer
* you will see the form and the "code behind" both open in VS IDE
* the "code behind" will be called Class Form1.
* rename the class to, say, "Apricot" (do a search and replace though as
the name is used elsewhere in the code)
* the form will compile and you can run it
cheers
Andrew
PS IF hits is the case - it may have happened if you renamed the form,
depending how you did the rename
--
************************************************** **************************
andrewbingham.com
tel 01223 514674 (Cambridge)
mobile 07970 161057
fax 07970 601283
email
An****@AndrewBingham.com
DISCLAIMER, PLEASE NOTE:
This communication is for the attention of the named recipient only
The content should not be passed on to any other person.
It is sent in good faith, in confidence, and without legal responsibility.
VIRUS CHECK
Emails and attachments are virus checked using Norton® AntiVirus®
2002 which is regularly updated. However it remains the recipients
responsibility to check emails and attachments sent, or forwarded,
from andrewbingham.com for viruses and macro viruses
************************************************** **************************
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:c8**********@yarrow.open.ac.uk...
I've created my own form (say, "AppletBase" with some basic
controls (mainly GroupBoxes) on it. Now, I'm trying to inherit
from this to create [lots of] other applications.
[ancestor]
Class AppletBase
Inherits Forms.Form
[descendent]
Class Applet1
Inherits AppletBase
So why, then, does the VS (2003) IDE *not* offer me a "View
Designer" option so that I can put more specific controls onto the
descendent form???
Sure, I can "View Code" it, but it's not half as pretty ... :-)
TIA,
Phill W.