469,071 Members | 1,914 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,071 developers. It's quick & easy.

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 2013
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Pedro | last post: by
2 posts views Thread by JR | last post: by
1 post views Thread by Chris Moore | last post: by
33 posts views Thread by Joe Fallon | last post: by
11 posts views Thread by Joe Fallon | last post: by
6 posts views Thread by Bart Schelkens | last post: by
2 posts views Thread by pmcguire | last post: by
6 posts views Thread by Nak | last post: by
2 posts views Thread by Urs Eichmann | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.