Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2008

Tip: Looking for answers? Try searching our database.

My UserControls are crashing VS2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
0to60 - 28 Dec 2007 22:34 GMT
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.
RobinS - 04 Jan 2008 04:19 GMT
What version of Visual Studio are you using, and if it's VS2005, have you
installed SP-1?

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

>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
[quoted text clipped - 16 lines]
> crashing.  Am I doing something wrong with my controls?  I don't know if
> there are any tricks to making UserControls.
0to60 - 07 Jan 2008 18:13 GMT
Its VS2005 Professional SP1.

> What version of Visual Studio are you using, and if it's VS2005, have you
> installed SP-1?
[quoted text clipped - 23 lines]
>> crashing.  Am I doing something wrong with my controls?  I don't know if
>> there are any tricks to making UserControls.
RobinS - 14 Jan 2008 03:49 GMT
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.
-------------------------------
> Its VS2005 Professional SP1.
>
[quoted text clipped - 25 lines]
>>> crashing.  Am I doing something wrong with my controls?  I don't know if
>>> there are any tricks to making UserControls.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.