By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,989 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,989 IT Pros & Developers. It's quick & easy.

Diappearing User Controls

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.