VS.NET 2005, visual inheritance, and MustInherit

  • Thread starter Ray Cassick \(Home\)
  • Start date
R

Ray Cassick \(Home\)

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/
 
J

Jay B. Harlow [MVP - Outlook]

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


| 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/
|
|
 
R

Ray Cassick \(Home\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top