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?
Printable View
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?
Suggestion- With all that crap I'd whipe my ass more. :D
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.
Then what [crappy] code should I write??
buy a good book.
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?Quote:
Originally posted by Danny J
Then what [crappy] code should I write??
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*
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?
I don't have the MSDN library. Or VS .NET help. My project is secret. Can you help or not?
OK I got this fixed...
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.