PC Review


Reply
Thread Tools Rate Thread

My UserControls are crashing VS2005

 
 
0to60
Guest
Posts: n/a
 
      28th Dec 2007
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
 
 
 
 
RobinS
Guest
Posts: n/a
 
      4th Jan 2008
What version of Visual Studio are you using, and if it's VS2005, have you
installed SP-1?

RobinS.
GoldMail,Inc.
---------------------------

"0to60" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
 
0to60
Guest
Posts: n/a
 
      7th Jan 2008
Its VS2005 Professional SP1.

"RobinS" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> What version of Visual Studio are you using, and if it's VS2005, have you
> installed SP-1?
>
> RobinS.
> GoldMail,Inc.
> ---------------------------
>
> "0to60" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>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
 
RobinS
Guest
Posts: n/a
 
      14th Jan 2008
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.
-------------------------------
"0to60" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Its VS2005 Professional SP1.
>
> "RobinS" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> What version of Visual Studio are you using, and if it's VS2005, have you
>> installed SP-1?
>>
>> RobinS.
>> GoldMail,Inc.
>> ---------------------------
>>
>> "0to60" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>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
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot deploy or debug with VS2005 or VS2005 BlackMDK Microsoft Dot NET Compact Framework 8 14th Feb 2008 11:21 AM
VS2005 UserControls Robert Mago Microsoft C# .NET 2 18th Nov 2006 04:26 AM
What's the difference between VS2005 Beta3 and VS2005 realse version mike Microsoft C# .NET 5 1st Dec 2005 10:19 AM
Using UserControls and generics with VS2005 designer =?Utf-8?B?UXBlZw==?= Microsoft Dot NET Framework Forms 0 19th Oct 2005 09:10 AM
Adding usercontrols to other usercontrols =?Utf-8?B?RW1tYQ==?= Microsoft C# .NET 2 27th Oct 2004 04:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:55 PM.