HighTechTalks DotNet Forums  

My UserControls are crashing VS2005

Dotnet Framework (WinForms Controls) microsoft.public.dotnet.framework.windowsforms.controls


Discuss My UserControls are crashing VS2005 in the Dotnet Framework (WinForms Controls) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
0to60
 
Posts: n/a

Default My UserControls are crashing VS2005 - 12-28-2007 , 05:51 PM






I have a solution with a couple .dll projects and an .exe project. In the
..exe project there are a few UserControls and some classes that inherit from
Panel. They all appear in my Toolbox under "<solution name> Components". I
can drag them onto forms and such and that all works. It compiles and runs
fine.

The problem seems to be whenever I put one of my controls onto a container
such as a TableLayoutPanel. What happens is I'll put my control on a cell
of the panel and resize it or set a few properties and bam, Windows says
that VS needs to shut down and restart. Or, I'll be messing with the
control and all of the sudden it disappears off the form. If I close the
design window at this point (without saving changes) I'm ok. I can compile
or re-open the designer and everything is fine. But sometimes when my
control suddenly disappears like that, if I go to run it it won't build at
all. All my references to that control in code are bad because its like the
designer "deleted" it.

What the hell is going on? I can barely work because VS is constantly
crashing. Am I doing something wrong with my controls? I don't know if
there are any tricks to making UserControls.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.