473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Visual Inheritance

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.

Nov 20 '05 #1
6 1299
have you rebuilt the solution?

"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.

Nov 20 '05 #2
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> schrieb
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 ... :-)


Is the 2nd Form the first class in the *.vb file? Is there other code above?
If yes, which?

If it's only an IDE problem: sometimes it's sufficent to close the solution
and open it again, and the designer will be available again.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
Repeatedly . . .

"Eric Sabine" <mopar41@___ho_y_tmail.ScPoAmM> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
have you rebuilt the solution?

"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.

Nov 20 '05 #4
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de...
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> schrieb .. . .
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???

.. . . Is the 2nd Form the first class in the *.vb file?
Yes.
Is there other code above? If yes, which?
Just these two lines :

Imports root.AppletUI
Namespace Some.OtherNamespace
If it's only an IDE problem: sometimes it's sufficent to close the solution and open it again, and the designer will be available again.


BINGO!!
Just as you say; close and reopen the solution and my designer's
back again.

Should I expect this sort of thing to happen often? :-/

Regards,
Phill W.
Nov 20 '05 #5
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> schrieb
If it's only an IDE problem: sometimes it's sufficent to close
the

solution
and open it again, and the designer will be available again.


BINGO!!
Just as you say; close and reopen the solution and my designer's
back again.

Should I expect this sort of thing to happen often? :-/


Yes, it happens now and then.
--
Armin

Nov 20 '05 #6
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.

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
I have created an MDI child form that I am using as a base form in a VB.Net MDI application. The base MDI child form has a series of menu options on it. I then use this form to create other MDI...
1
by: Jason Hickey | last post by:
Has there been a change in the way the UI designer handles winform inheritance in the 2003 version of visual studio. Consider the following (try it if you are using 2003 Everything seems to work...
30
by: Elhanan | last post by:
hi all i have a question in desgning a form.. the application in question is something a indexing station. the user in this indexing station views a document in pdf/tiff format on the right...
1
by: Paul M | last post by:
Hi folks, I've got a page that contains the basic formatting that I need for pretty much all of my systems pages. It's compiled into it's DLL, distributed to my application's \bin folder and VS...
2
by: Mr Wizard | last post by:
I am going through the front controller http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpFrontControllerInASP.asp and all works well except when the server.transfer...
10
by: Gopal Prabhakaran | last post by:
Hi Pls Help me to do Visual Inheritance with ASP.NET -- Thanx Gopal Prabhakaran
6
by: VR | last post by:
Hi, I read about Master Pages in ASP.Net 2.0 and after implementing some WinForms Visual Inheritance I tryed it with WebForms (let's say .aspx pages, my MasterPage does not have a form tag itself...
6
by: Bart Schelkens | last post by:
Hi, i've created a base-form from which all the forms in my application need to inherit. This works just fine. I've put some buttons on my base-form. They are displayed correctly, only if my...
2
by: Ray Cassick \(Home\) | last post by:
Since I got such good feedback from the Xml comments question I will ask this of the group as well. Is VS.NET 2005 handling the visual inheritance problems centered around controls and forms...
3
by: Dino Buljubasic | last post by:
Hi, I am thinking of using visual inheritance. I am using C# VS 2005. I am concerned about how good it is. I have heard about problems like controls dissapearing or so. Any hints, tips,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.