VB.net and ActiveX Controls


M

Mita Garg

Hi All,

In VB6, if i create an ActiveX Control, I can add this control to my
Toolbox and can just use it like any other Conrols say for example
"TextBox" bu dragging and dropping on the from.
If I want to do the similar kind of thing in VB.net how do i do it.
I created a "Windows Control Library" in VB.net. and using regAsm also
registered it. So i can see this in my (Vb6- Add/References) but I
want to use it as control and want to appear it in my Toolbox. Rather
then appearing in the Reference section it should appear in the
Add/Components section.

Your help will be appreciated.
Tks Mita
 
Ad

Advertisements

J

Jeremy Todd

Mita Garg said:
In VB6, if i create an ActiveX Control, I can add this control to my
Toolbox and can just use it like any other Conrols say for example
"TextBox" bu dragging and dropping on the from.
If I want to do the similar kind of thing in VB.net how do i do it.
I created a "Windows Control Library" in VB.net. and using regAsm also
registered it. So i can see this in my (Vb6- Add/References) but I
want to use it as control and want to appear it in my Toolbox. Rather
then appearing in the Reference section it should appear in the
Add/Components section.

First, you don't generally have to register a .NET DLL in the same way
you would with COM/ActiveX. Just compile it, then open the Toolbox,
right-click, and select Add/Remove Items. Then, under the .NET tab, click
Browse, select your compiled DLL, and voila! If you add one of your
controls to a form, it should automatically add a reference to your DLL.

Jeremy
 
Ad

Advertisements

M

Mita Garg

Hi jeremy,

tks for your time but i want to add the control in VB6 and not in
..NET. I am able to add the control in .NET by using add/remove items
but not in VB6 applications in the Toolbar. InVB6 I can see it in the
Add/reference section. But instead of appearing ther it should be in
the add/components section so that i can add it to the Toolbox.

regards Mita
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top