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

Diappearing User Controls

Again, I got caught by the bug in VB.Net 2003 where a usercontrol placed on
the form at design time works fine for a week or so then all of a sudden,
it's not there. Has this bug been fixed in VB.Net 2005?

I have resorted to adding any UserControls at runtime but this isn't very
efficient programming and and I use a lot of UserControls inheirited from
Microsoft's base controls.
--
Dennis in Houston
Nov 21 '05 #1
6 946
I have *never* had this happen to me. However I've never been silly enough
to modify the nitializeComponent method by hand. Have you?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:73**********************************@microsof t.com...
Again, I got caught by the bug in VB.Net 2003 where a usercontrol placed
on
the form at design time works fine for a week or so then all of a sudden,
it's not there. Has this bug been fixed in VB.Net 2005?

I have resorted to adding any UserControls at runtime but this isn't very
efficient programming and and I use a lot of UserControls inheirited from
Microsoft's base controls.
--
Dennis in Houston

Nov 21 '05 #2
Calling silly to someone exposing a question isn't quite polite, is it?
Besides, this is a known bug:
http://support.microsoft.com/?scid=k...42706&x=9&y=16

Perhaps you haven't faced it, but many people has (me, for example)

Nov 21 '05 #3
No offense meant...

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Jordi Rico" <jo*******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Calling silly to someone exposing a question isn't quite polite, is it?
Besides, this is a known bug:
http://support.microsoft.com/?scid=k...42706&x=9&y=16

Perhaps you haven't faced it, but many people has (me, for example)

Nov 21 '05 #4
I haven't modified the initialization code. This is a known bug by Microsoft
and they have a hotfix for it but you have to call in to them to get it and
possibly incur charges for their help.
--
Dennis in Houston
"Bob Powell [MVP]" wrote:
I have *never* had this happen to me. However I've never been silly enough
to modify the nitializeComponent method by hand. Have you?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:73**********************************@microsof t.com...
Again, I got caught by the bug in VB.Net 2003 where a usercontrol placed
on
the form at design time works fine for a week or so then all of a sudden,
it's not there. Has this bug been fixed in VB.Net 2005?

I have resorted to adding any UserControls at runtime but this isn't very
efficient programming and and I use a lot of UserControls inheirited from
Microsoft's base controls.
--
Dennis in Houston


Nov 21 '05 #5
Having read the MS kb article... (I may be an MVP but that doesn't mean I'm
an MS employee etc...) I see that this fault often occurs when the solution
containing the user control also contains the code which utilises the
control.

I have never been caught out by this one because I've never developed a
control that I tested in this manner.

Windows Forms Tips and Tricks has an article explaining how to correctly set
up test debugging for custom controls. I hope this will asssist you.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
I haven't modified the initialization code. This is a known bug by
Microsoft
and they have a hotfix for it but you have to call in to them to get it
and
possibly incur charges for their help.
--
Dennis in Houston
"Bob Powell [MVP]" wrote:
I have *never* had this happen to me. However I've never been silly
enough
to modify the nitializeComponent method by hand. Have you?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:73**********************************@microsof t.com...
> Again, I got caught by the bug in VB.Net 2003 where a usercontrol
> placed
> on
> the form at design time works fine for a week or so then all of a
> sudden,
> it's not there. Has this bug been fixed in VB.Net 2005?
>
> I have resorted to adding any UserControls at runtime but this isn't
> very
> efficient programming and and I use a lot of UserControls inheirited
> from
> Microsoft's base controls.
> --
> Dennis in Houston


Nov 21 '05 #6
It also occurs when a user control is placed on a form and the user control's
code does not contain code that uses the control. It has happened to me
twice and seems to happen when the user control is quite large. I have a
multigrid that I wrote from scratch which has a lot of code since all the
graphics are done by the code as well. The form that uses this grid control
seems to just stop displaying it.

All the code for the control is still in the Designer code for the form but
it doesn't get displayed either at design time or run time.
--
Dennis in Houston
"Bob Powell [MVP]" wrote:
Having read the MS kb article... (I may be an MVP but that doesn't mean I'm
an MS employee etc...) I see that this fault often occurs when the solution
containing the user control also contains the code which utilises the
control.

I have never been caught out by this one because I've never developed a
control that I tested in this manner.

Windows Forms Tips and Tricks has an article explaining how to correctly set
up test debugging for custom controls. I hope this will asssist you.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
I haven't modified the initialization code. This is a known bug by
Microsoft
and they have a hotfix for it but you have to call in to them to get it
and
possibly incur charges for their help.
--
Dennis in Houston
"Bob Powell [MVP]" wrote:
I have *never* had this happen to me. However I've never been silly
enough
to modify the nitializeComponent method by hand. Have you?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:73**********************************@microsof t.com...
> Again, I got caught by the bug in VB.Net 2003 where a usercontrol
> placed
> on
> the form at design time works fine for a week or so then all of a
> sudden,
> it's not there. Has this bug been fixed in VB.Net 2005?
>
> I have resorted to adding any UserControls at runtime but this isn't
> very
> efficient programming and and I use a lot of UserControls inheirited
> from
> Microsoft's base controls.
> --
> Dennis in Houston


Nov 21 '05 #7

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

Similar topics

1
by: Robert Howells | last post by:
Perhaps I'm just too new at this to pull it off, or perhaps it's just bad architecture. I'd appreciate some feedback on the the wisdom (or lack thereof) in attempting the following: I'm not new...
6
by: Steve Booth | last post by:
I have a web form with a button and a placeholder, the button adds a user control to the placeholder (and removes any existing controls). The user control contains a single button. I have done all...
4
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
2
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
0
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
3
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
2
by: Dave A | last post by:
I just don't get this... If I need to dynamically load controls into a web page I simply need to go PlaceHolder1.Controls.Add(new Button()); or similar. However when I need to dynamically...
1
by: Demetri | last post by:
I'm trying to determine if we want to use panels or user controls for our pages. Our primary concern is performance, page loading and posting speed. To illustrate my question, lets use the...
8
by: mark.norgate | last post by:
I've run into a few problems trying to use generics for user controls (classes derived from UserControl). I'm using the Web Application model rather than the Web Site model. The first problem...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.