|
-
Oct 17th, 2003, 02:20 PM
#1
Thread Starter
Lively Member
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."
-
Oct 17th, 2003, 02:28 PM
#2
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.
-
Oct 17th, 2003, 03:15 PM
#3
Thread Starter
Lively Member
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."
-
Oct 17th, 2003, 03:24 PM
#4
I wonder how many charact
-
Oct 17th, 2003, 04:32 PM
#5
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?
-
Oct 18th, 2003, 02:03 PM
#6
Thread Starter
Lively Member
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."
-
Oct 18th, 2003, 02:42 PM
#7
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?
-
Oct 18th, 2003, 02:54 PM
#8
Thread Starter
Lively Member
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."
-
Oct 18th, 2003, 03:02 PM
#9
Thread Starter
Lively Member
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."
-
Oct 18th, 2003, 03:04 PM
#10
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|