PDA

Click to See Complete Forum and Search --> : User Control designer disappeared?!


Barguast
Jul 27th, 2004, 10:08 AM
I've been creating a nice little User Control all day. I've just loaded the project back up and my new little control has... ... well, it's gone.

The .cs file is there, including all of the code. But when I go to the designer, the user control's 'canvas' (if that's the appropriate term) has disappeared, and the controls (labels, picture boxes, and such) are all just listed out!

If there any way I can fix this? Please, if you're not sure what I mean then ask and I'll elaborate

Pirate
Jul 27th, 2004, 04:37 PM
I remember this happened once for me . What I did was something like this :
Changed inheriting from UserControl to something else (I think Label) . So did you make any change of this sort ?

Barguast
Jul 27th, 2004, 05:48 PM
Yes, it inherits from ContainerControl - changing it to UserControl does make it work, but it needs to be a container. Is this fixable? Incidently, the control does show up correctly in the test project, but I can't edit the control any further until this problem is fixed...

EDIT: I am doing this right, aren't I? If I want to place controls inside my control, it has to be derived from ContainerControl, doesn't it?