Results 1 to 10 of 10

Thread: The User Control: Container Interface please? *Resolved*

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108

    The User Control: Container Interface please? *Resolved*

    Hey!

    I am trying to find a way to turn a UC into a container. I tried that IContainer crap but it said I was interfering with other crap. VB is crap, crap, crap. Any suggestions?
    Last edited by Danny J; Oct 18th, 2003 at 03:03 PM.
    DannyJoumaa
    Advanced VB6 Programmer
    Intermediate-Advanced VB .NET Programmer
    Intermediate C# Programmer
    Intermediate Win32 Developer
    Beginner Mac OS X Developer
    Contact: [email protected]

    Favorite Sayings:
    "Every time you open your mouth, you prove your an idiot."
    "God is a programmer. Satan is a bug. Life is debugging."

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Suggestion- With all that crap I'd whipe my ass more.

    Try inheriting from ContainerControl instead of UserControl or applying the <Designer(GetType(Windows.Forms.Design.ParentControlDesigner))> attribute on the class itself. If those don't work try inheriting from a container control like Panel.
    Last edited by Edneeis; Oct 17th, 2003 at 02:32 PM.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108
    Then what [crappy] code should I write??
    Last edited by Danny J; Oct 17th, 2003 at 03:22 PM.
    DannyJoumaa
    Advanced VB6 Programmer
    Intermediate-Advanced VB .NET Programmer
    Intermediate C# Programmer
    Intermediate Win32 Developer
    Beginner Mac OS X Developer
    Contact: [email protected]

    Favorite Sayings:
    "Every time you open your mouth, you prove your an idiot."
    "God is a programmer. Satan is a bug. Life is debugging."

  4. #4
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    buy a good book.

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Originally posted by Danny J
    Then what [crappy] code should I write??
    What do you mean? You write whatever code you want to make the control. Doing any of the things I suggested will make the control a container control which is what you asked right?

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108
    This is not working at all, first I want some controls to be on my usercontrol, and neither of your options worked. Inheriting a panel makes the control a web control... I am depending mostley on your atribute but its telling me that there is no such as ParentControlDesigner. Can you please give me some more info here? *whipes his ass*
    DannyJoumaa
    Advanced VB6 Programmer
    Intermediate-Advanced VB .NET Programmer
    Intermediate C# Programmer
    Intermediate Win32 Developer
    Beginner Mac OS X Developer
    Contact: [email protected]

    Favorite Sayings:
    "Every time you open your mouth, you prove your an idiot."
    "God is a programmer. Satan is a bug. Life is debugging."

  7. #7
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    A web control? Are you using ASP.NET? Or did you inherit from the HTML Control Panel instead of the WinForms Panel Control. Also the designer is probably not reachable from your current namespace (I probably forget to give you the Imports). I think its System.ComponentModel. To find out just search for ParentControlDesigner in the help in the VS IDE. Actually I just did and its under the System.Windows.Forms.Design namespace.

    What exactly are you trying to do or make?

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108
    I don't have the MSDN library. Or VS .NET help. My project is secret. Can you help or not?
    DannyJoumaa
    Advanced VB6 Programmer
    Intermediate-Advanced VB .NET Programmer
    Intermediate C# Programmer
    Intermediate Win32 Developer
    Beginner Mac OS X Developer
    Contact: [email protected]

    Favorite Sayings:
    "Every time you open your mouth, you prove your an idiot."
    "God is a programmer. Satan is a bug. Life is debugging."

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108

    Problem Resolved

    OK I got this fixed...
    DannyJoumaa
    Advanced VB6 Programmer
    Intermediate-Advanced VB .NET Programmer
    Intermediate C# Programmer
    Intermediate Win32 Developer
    Beginner Mac OS X Developer
    Contact: [email protected]

    Favorite Sayings:
    "Every time you open your mouth, you prove your an idiot."
    "God is a programmer. Satan is a bug. Life is debugging."

  10. #10
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    All of the information contained in the VS Help files can be found on the web: http://msdn.microsoft.com

    Also the phrase "Can you help or not?" seems a bit rude.

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