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 / Design Time / December 2004

Tip: Looking for answers? Try searching our database.

Stop designer from dropping controls from form?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WXS - 10 Dec 2004 03:59 GMT
When putting user controls in panels on a form, sometimes the designer just
loses
them.  Many people have reported this issue.  The potential causes people
speculated were the control was not accessible or was changed in the project
at runtime so the designer could not read it.  We eliminated those
possibilities by using a purbinary reference and the control was still lost
on ocassion.

The only thing we could do was move code out of initialize component so the
designer would stop dropping the control.

Any ideas what is going on and how to stop this it has made dealing with
these particular forms  a pain since we can't use the designer with the
controls.

Thanks,
Dave
joeycalisay - 10 Dec 2004 08:24 GMT
> When putting user controls in panels on a form, sometimes the designer just
> loses
> them.

The only way I experienced this before was if there were problems in control
code generation.

>We eliminated those
> possibilities by using a purbinary reference and the control was still lost
> on ocassion.

purbinary? what does this word mean?

> Any ideas what is going on and how to stop this it has made dealing with
> these particular forms  a pain since we can't use the designer with the
> controls.

Perhaps I can only help you if you can present me sample code of your
controls and their designer classes.
WXS - 10 Dec 2004 21:13 GMT
That was meant to say a pure binary reference not a project reference so the
control should have been fine.  Our project was a little too complex to break
out, when we heard others we having an issue we stopped creating the test app
to simulate the issue in a more trivial way for demonstration purposes and
just moved our code out of initialize component.  It seems to be specific to
user controls on panels.  The more panels you have the worse off you are.  
Our best guess at the time was some sort of designer bug.

> > When putting user controls in panels on a form, sometimes the designer
> just
[quoted text clipped - 17 lines]
> Perhaps I can only help you if you can present me sample code of your
> controls and their designer classes.
joeycalisay - 13 Dec 2004 01:57 GMT
> Our best guess at the time was some sort of designer bug.

Ok then, if you want to put it that way, then so be it...

> That was meant to say a pure binary reference not a project reference so the
> control should have been fine.  Our project was a little too complex to break
[quoted text clipped - 25 lines]
> > Perhaps I can only help you if you can present me sample code of your
> > controls and their designer classes.

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.