My UserControls are crashing VS2005

  • Thread starter Thread starter 0to60
  • Start date Start date
0

0to60

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.
 
What version of Visual Studio are you using, and if it's VS2005, have you
installed SP-1?

RobinS.
GoldMail,Inc.
 
What is in your user controls? Just give me an example of one that is
crashing on you. We have lots of user controls, but haven't seen this
problem at all.

RobinS.
GoldMail, Inc.
-------------------------------
 
Back
Top