Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a usercontrol that acts as a container. 1

Status
Not open for further replies.

Disferente

Programmer
Jun 23, 2008
112
US
I am trying to create a usercontrol that I can use as a container. The reason for this is that I need a container that I can create dynamicly at runtime with events.
Could anyone please give a pointer or two how to proceed?
 

Why don't you just place a frame on your Form, set its Index to 0, and in your code if you need additional frames load another frame with index 1, 2, 3... by using Load?

Why user control? The Frame, or Picture Box would not work?

Have fun.

---- Andy
 
I don't use index because I need to have three dimensions, not just one, and when putting the control in any kind of array or similar, you can't use withevents.

I have it working now using picturebox, with the only problem that I don't have any events.
 
In the UserControl property pane, set ControlContainer to True.

Heaven doesn't want me, and Hell's afraid I'll take over!
 
You're welcome.

Heaven doesn't want me, and Hell's afraid I'll take over!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top