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.
..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.