HighTechTalks DotNet Forums  

Stop designer from dropping controls from form?

Dotnet Framework (WinForms DesignTime) microsoft.public.dotnet.framework.windowsforms.designtime


Discuss Stop designer from dropping controls from form? in the Dotnet Framework (WinForms DesignTime) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
WXS
 
Posts: n/a

Default Stop designer from dropping controls from form? - 12-09-2004 , 09:59 PM







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


Reply With Quote
  #2  
Old   
joeycalisay
 
Posts: n/a

Default Re: Stop designer from dropping controls from form? - 12-10-2004 , 02:24 AM






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

Quote:
We eliminated those
possibilities by using a purbinary reference and the control was still
lost
on ocassion.
purbinary? what does this word mean?

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




Reply With Quote
  #3  
Old   
WXS
 
Posts: n/a

Default Re: Stop designer from dropping controls from form? - 12-10-2004 , 03:13 PM



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.


"joeycalisay" wrote:

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




Reply With Quote
  #4  
Old   
joeycalisay
 
Posts: n/a

Default Re: Stop designer from dropping controls from form? - 12-12-2004 , 07:57 PM



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

"WXS" <WXS (AT) discussions (DOT) microsoft.com> wrote

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


"joeycalisay" wrote:

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.






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.