Disappearing UserControls - BUG in VB.New 2003

G

Guest

I just lost some user controls for no reason using VB.Net 2003. I had added
the controls thru the Design IDE and all was working ok but for some reason,
they just disappeared. The form module ("Windows Designer code") showed them
still there but all properties that I had set were gone.

My solution was to re-add the controls in the designer then copy the design
code to a sub and add them programatically in the form load event. I believe
there is a bug in the VB.NeT 2003 designer that allows controls to just
disappear for no reason. I've heard of people having this trouble before so
I'm thru with adding user controls via the designer!

I know some on this newsgroup don't like calling things a BUG but I call it
like it is and it's a BUG!
 
C

Carlos J. Quintero [.NET MVP]

Hi Dennis,

A bug can be from a typo in the documentation to a unexpected behavior, even
if it is by (bad) design... ;-)

Take a look at this article and if this is your case request the hotfix:

FIX: Controls disappear from the Windows Forms Designer in Visual Studio
..NET 2003
http://support.microsoft.com/default.aspx?scid=kb;en-us;842706

--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
G

Guest

Thanks for web site. This is the problem that I have had on a couple of
occasions. However, it says;

"This problem occurs if the user control project or the derived Windows
Forms control project is in the same solution as the Windows Forms project,
and you build the solution by using both a Debug configuration and a Release
configuration. Under these conditions, when you open the Windows Forms
Designer, the Windows Forms Designer may not correctly resolve the type for
the control and may remove it from the Windows Form designer UI. "

I have my control in the same solution but I do not use a release
configuration. Also, all this site gives is a link to a list of Microsoft
tele nos and they want to charge you to get the hotfix. I really think this
is too much even for Microsoft to charge to fix one of their bugs! Maybe
it's fixed in VB.Net 2005.
 
C

Carlos J. Quintero [.NET MVP]

Hi Dennis,

MS will not charge you for the hotfix. You just call them, point them to the
KB article and request the hotfix. They will send to you a download URL in
a couple of hours at no charge. I have done that quite a few times.

--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 

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