Results 1 to 3 of 3

Thread: User Control designer disappeared?!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    195

    Angry User Control designer disappeared?!

    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
    Last edited by Barguast; Jul 27th, 2004 at 03:54 PM.
    Using Visual Studio .NET 2005

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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 ?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    195
    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?
    Last edited by Barguast; Jul 27th, 2004 at 07:11 PM.
    Using Visual Studio .NET 2005

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width