add user control directly to form

add user control directly to form

Post by Bill » Sat, 01 Nov 2008 23:14:07


Hi,

I'm using Visual Studio 2008 SP1.

I have created a custom control, and I want to use it on a Windows
Form. They way I have done this in the past is: first I add the custom
control to the toolbox (Tools -> Choose Toolbox Items... -> .NET
Framework Components -> etc) and then I drag the control from to
toolbox to the form. That works fine.

Is there any way to add a custom control to a form without having to
first add it to the toolbox?

Thank you,
 
 
 

1. How to add user directly to Active Directort Directly.

2. Adding Control dynamically in user's form by other control

Hello Everybody,
I designed 2 controls. User of control will add Vertical toolbar in MDI
Form, When user click Button of vertical Toolbar, Vertical Toolbar must
dynamically create Horizontal Flyout Toolbar.
Here, I create Horizontal Toolbar dynamically in ButtonClick event of
Vertical Toolbar using statement

Set objHorizontalToolbat = Controls.Add("CntHori.TbrHorizontal", "ObjName")
Actually, I want to create toolbar on users MDI Form. I tried by another
statement like
Set objHorizontalToolbat = Controls.Add("CntHori.TbrHorizontal", "ObjName",
UserControl.Parent)
But VB fired Runtime Error "MDIForm" is not valid Container.
Can you help me in this regard.
Is ther any other way to create flyout Toolbar in VB for MDI
Applications.
Help Me?

Thnak You in Advance
TusharP

3. Controls.Add() for a Web User Control doesn't instansiate its child controls

4. this.Controls.Add(Control) Does Not Add Control to child collection (this.Controls.Count == 0)

5. Dropping controls in a User Control ges added to parent control

6. User form controls add

7. Visual User Control component cannot be added to designer form

8. Adding controls to user form

9. Dynamically Add User Controls to a Form at Run Time?

10. Adding a control to a User Form

11. Add User control to existing Windows Form in same project

12. Automating image capture directly into form control

13. How to add file directly from source control?

14. How do I draw directly to my forms control?

15. Can PHP control a form value directly