473,804 Members | 2,962 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disappearing UserControls - BUG in VB.New 2003

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!
--
Dennis in Houston
Nov 21 '05 #1
4 2671
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...b;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
"Dennis" <De****@discuss ions.microsoft. com> escribió en el mensaje
news:C2******** *************** ***********@mic rosoft.com...
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!
--
Dennis in Houston

Nov 21 '05 #2
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.

--
Dennis in Houston
"Carlos J. Quintero [.NET MVP]" wrote:
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...b;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
"Dennis" <De****@discuss ions.microsoft. com> escribió en el mensaje
news:C2******** *************** ***********@mic rosoft.com...
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!
--
Dennis in Houston


Nov 21 '05 #3
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

"Dennis" <De****@discuss ions.microsoft. com> escribió en el mensaje
news:C1******** *************** ***********@mic rosoft.com...
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.

Nov 21 '05 #4
Thanks, I'll give it a try.
--
Dennis in Houston
"Carlos J. Quintero [.NET MVP]" wrote:
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

"Dennis" <De****@discuss ions.microsoft. com> escribió en el mensaje
news:C1******** *************** ***********@mic rosoft.com...
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.


Nov 21 '05 #5

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

Similar topics

9
3337
by: Larry Woods | last post by:
I have a site that works fine for days, then suddenly, I start getting ASP 0115 errors with an indication that session variables IN SEPARATE SESSIONS have disappeared! First, for background information, I have a customized 500-100 page that sends the value of various session variables via email to my support site. The situation: On the home page of the site, the FIRST THING that is done is a Session
14
3247
by: Paul Yanzick | last post by:
Hello, I am trying to develop a book tracking application for my capstone in school, and am running into a problem. The application is an ASP.Net application written in C#. The first page you go to is a login form, which will set several session variables with the name used to log in, appropriate security level and some other misc variables, and then will go to a main menu for each particular security level using Server.Transfer. ...
3
2004
by: Ash | last post by:
What is the advantage of using a user control over a .aspx page..
0
907
by: [XtOf].fr | last post by:
Hello World ! I created several UserControls which, on the level of code ASP, contain the same methods and properties. To optimize that, I have create a Class called 'A' (As the heritage mutliple does not exist) which inherits system.web.ui.webcontrols and I implemented the functions common in my userscontrols. I then made inherit this new class 'A' for all my userscontrols.
6
1643
by: Winshent | last post by:
I have read many threads which indicate that this was a problem with version 2002. Why should i be suffering this? I am using VB.NET 2003 Standard Edition... is it still a problem with 2003? I have used the wizards to generate the connection and adapter, which generates the code in 'InitializeComponent', and i have stored the connection string within web.config and it seems to get rid of this
2
1430
by: Grant Merwitz | last post by:
I am using usercontrols to control the contant in my website. Currently, depending on a parameter passed in the querystring, the appropriate usercontrol will be loaded. i.e. private void Page_Load(object sender, System.EventArgs e) { if(!Page.IsPostBack) { Switch(Request.Params)
3
2105
by: b747_440 | last post by:
Dear Newsgroup, I'm an old VB6.0 developper who switched some time ago to VB.NET 2005. I really like that new Visual Studio. However, something is going wrong now and I can't figure out, what it is... I was playing around with UserControls which are inherited from standard .NET controls to make myself some transparent controls. Suddenly I realized that after bulding my project those UserControls do not appear in the Toolbox anymore. I had...
2
1197
by: Robert Mago | last post by:
Hi, I have been using web usercontrols on 2003 for a very long time and i find them userful for modularity. Usually what i do is create a subfolder called 'UserControls' for example and placed the web usercontrols there ( i would change the namespace to *.UserControls. ). However, when i tried this in VS2005, i couldn't get an instance of the control when i did this.loadcontrol(control path) as X. Investigating further i found that is...
1
1687
by: =?Utf-8?B?RGFuaWVsIERpVml0YQ==?= | last post by:
First, I am using VS2005 with windows XP. I am having an issue where I cannot see the images in my usercontrols or the ASPX pages they are dropped onto (the ASPX pages are on the root of the site for now). Indies my user control I am using a standard html img tag: <img src="/images/imageName.jpg" alt="" title="Test"/> Here is the path structure c:\websites\NewSite Under NewSite we have these folders Images UserControls
0
9571
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10561
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6845
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.