473,382 Members | 1,336 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,382 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 1298
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,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.