I have a c# solution containing the following projects -
a windows form control library containing some custom windows form controls
a windows form app with forms containing these controls (with a local
solution reference to the controls proj)
Randomly(?) the designer will just wipe these controls off the form (it will
even try and check the form out to do the damage! - if it already is then
its usually goodbye to a few hours work :o/ ). Sometimes building the
controls project again will magically bring them back but more often than
not its a lengthy solution restart... What causes this behaviour and how can
it be prevented?
Frustrated,
Simon
Jim-M - 09 Aug 2004 22:27 GMT
Sorry I can't be more specific, but I saw this problem when developing
WinControls. Periodically if one of my custom controls threw an
exception in a constructor, the control would disappear (except for the
declaration in the generated components section).
My suggestion would be to take a look at your controls and put some
debugging messages in the constructors and at other key places. I
ultimately tracked it down to a property that wasn't being initialized
correctly within a control constructor.
Happy hunting!
> I have a c# solution containing the following projects -
>
[quoted text clipped - 12 lines]
>
> Simon