473,415 Members | 1,562 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,415 software developers and data experts.

VS.NET 2005, visual inheritance, and MustInherit

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 that are decorated with MustInherit any better than 2003
did?

I am getting really tired of having to do the good old '#If DEBUG Then'
workaround just to get by this.

Thanks.

--
Raymond R Cassick
CEO / CSA
Enterprocity Inc.
www.enterprocity.com
3380 Sheridan Drive, #143
Amherst, NY 14227
V: 716-316-5973
Blog: http://spaces.msn.com/members/rcassick/
Nov 23 '05 #1
2 2175
Ray,
| Is VS.NET 2005 handling the visual inheritance problems centered around
| controls and forms that are decorated with MustInherit any better than
2003
| did?
No.

Which IMHO to a point makes sense; as an instance of the base form is to be
created to display the derived form, allowing you to set base from
properties, plus allowing the base form to display itself as *it* wants. The
only solution I can think of would be for the form designer to dynamically
generic a concrete proxy class that "fills" in the mustoverride members,
however how would the proxy know what to put in the dynamically created
classes?

FWIW: I would like to see this problem solved!
In fact in some ways its worse! :-(

Adding a MustOverride method to base form, double clicking on the "Class
'DerivedForm' must either be declared 'MustInhert' or override the
following..." error message opens up the DerivedForm.Designer.vb file
instead of the DerivedForm.vb file.

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:eu**************@TK2MSFTNGP15.phx.gbl...
| 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 that are decorated with MustInherit any better than
2003
| did?
|
| I am getting really tired of having to do the good old '#If DEBUG Then'
| workaround just to get by this.
|
| Thanks.
|
| --
| Raymond R Cassick
| CEO / CSA
| Enterprocity Inc.
| www.enterprocity.com
| 3380 Sheridan Drive, #143
| Amherst, NY 14227
| V: 716-316-5973
| Blog: http://spaces.msn.com/members/rcassick/
|
|
Nov 23 '05 #2
I would like to see the problem solved too :)

In fact it is this that I think really make visual inheritance completely
unusable to any professional degree.

If I can put #if statements into my code to work around this the designer
sure as heck can 'work some magic' behind the scenes for me. At least give
me a new compiler directive so I can use both debug and release builds in
the designer.

If I design my base controls as MustInherit my customers cannot even use
them in the designer.

What a crock!

Hmmm I wonder if there will be someone that I can push feedback on at the
release event this Thursday. I know there will be SOMEONE there but will it
be someone that will understand.

"Jay B. Harlow [MVP - Outlook]" <Ja************@tsbradley.net> wrote in
message news:OG**************@TK2MSFTNGP12.phx.gbl...
Ray,
| Is VS.NET 2005 handling the visual inheritance problems centered around
| controls and forms that are decorated with MustInherit any better than
2003
| did?
No.

Which IMHO to a point makes sense; as an instance of the base form is to
be
created to display the derived form, allowing you to set base from
properties, plus allowing the base form to display itself as *it* wants.
The
only solution I can think of would be for the form designer to dynamically
generic a concrete proxy class that "fills" in the mustoverride members,
however how would the proxy know what to put in the dynamically created
classes?

FWIW: I would like to see this problem solved!
In fact in some ways its worse! :-(

Adding a MustOverride method to base form, double clicking on the "Class
'DerivedForm' must either be declared 'MustInhert' or override the
following..." error message opens up the DerivedForm.Designer.vb file
instead of the DerivedForm.vb file.

--
Hope this helps
Jay [MVP - Outlook]
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:eu**************@TK2MSFTNGP15.phx.gbl...
| 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 that are decorated with MustInherit any better than
2003
| did?
|
| I am getting really tired of having to do the good old '#If DEBUG Then'
| workaround just to get by this.
|
| Thanks.
|
| --
| Raymond R Cassick
| CEO / CSA
| Enterprocity Inc.
| www.enterprocity.com
| 3380 Sheridan Drive, #143
| Amherst, NY 14227
| V: 716-316-5973
| Blog: http://spaces.msn.com/members/rcassick/
|
|

Nov 23 '05 #3

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

Similar topics

9
by: Pedro | last post by:
Hi, all. I'm having a problem which vb developers had for certain al least once. I have my base form, declared as musthinherit; Public MustInherit Class frmsdvPrincipal
2
by: JR | last post by:
I'm developing in VS.NET 2002 and I'm having trouble working around the issue with page inheritance and the VS.NET Form Designer. When I create a base class for my form, and inherit from it, I...
1
by: Chris Moore | last post by:
Hi, I think this is a bug: Make a form, add some controls. Add MustInherit to the form declaration and save it. Try and create an inherited form based on it - the form is not shown in the...
33
by: Joe Fallon | last post by:
1. I have a Base class that has a certain amount of functionality. 2. Then I have a CodeSmith generated class that inherits from the Base class and adds functionality. 3. Since I want to be able...
11
by: Joe Fallon | last post by:
Public MustInherit Class My3rdLevelClass Inherits GeneratedClass Public Shared Function GetSomething() As String Return "Something" End Function
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: pmcguire | last post by:
I have a UserControl that I want to inherit from. Actually, I want to base a lot of controls on it. It exposes a lot of overridable methods, some of which I don't want to forget to override;...
6
by: Nak | last post by:
Hi there, I'm having issues inheriting from a base form of mine. The base form contains no user controls but quite a few properties, events and overridable methods. When attempting to...
2
by: Urs Eichmann | last post by:
Hi using VS 2005 Beta 2, I want to define a base class for any type of entity, e.g. customer, item, order etc. The entity could have a key of type String or Integer, so I define the base class as...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.