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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Little problem with my Add Ins

Status
Not open for further replies.

pguide

Programmer
Oct 20, 2000
3
RU
Hi.
I have a little problem for my new Add Ins.
When I use Controls.Add("VB.CommandButton",sName) then it's OK.
If I try to use this command to my UserControl it is bad.
Me.Controls.Add("MyControl",sName) 'Bad
UserControl is a part of current project. What I have to do?

Boris
 
First, you must create an object having MyControl type :
Dim obj as new MyControl

After that you can use :
Me.Controls.Add("MyControl",sName)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top