Groups | Blog | Home
all groups > dotnet windows forms designtime > december 2004 >

dotnet windows forms designtime : Stop designer from dropping controls from form?



WXS
12/9/2004 7:59:02 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
WXS
12/10/2004 1:13:01 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.


[quoted text, click to view]
joeycalisay
12/10/2004 4:24:19 PM
[quoted text, click to view]

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

[quoted text, click to view]

purbinary? what does this word mean?

[quoted text, click to view]

Perhaps I can only help you if you can present me sample code of your
controls and their designer classes.

joeycalisay
12/13/2004 9:57:47 AM
[quoted text, click to view]

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

[quoted text, click to view]

AddThis Social Bookmark Button