Page 1 of 1

Custom Control in a DLL and Import in Toolbox?!

Posted: Fri Apr 22, 2011 1:02 am
by Napster1488
Hey Guys,

i have a Question...i just Created a Custom TabControl and made a DLL from it but what i need to add to the Code so that i can add the DLL into the VB Toolbox and Drag it to a Form just like we do with the Normal TabControl ?!

Greetz our Napster
Thanks in Advance!

Re: Custom Control in a DLL and Import in Toolbox?!

Posted: Fri Apr 22, 2011 1:30 am
by Agust1337
Are any statements started with private?

Re: Custom Control in a DLL and Import in Toolbox?!

Posted: Fri Apr 22, 2011 1:42 am
by Zulf
Did you make it a UserControl, Control, or inherit the TabControl?

Control = non-visual base for components
UserControl = visible base for components
TabControl = inherits TabControl and modifies it.\

Re: Custom Control in a DLL and Import in Toolbox?!

Posted: Fri Apr 22, 2011 2:33 am
by 2cool4cereal2
Don't you right click on the tool box, go to choose tools/items, then select your .dll file?

Re: Custom Control in a DLL and Import in Toolbox?!

Posted: Fri Apr 22, 2011 2:39 am
by Zulf
2cool4cereal2 wrote:
Don't you right click on the tool box, go to choose tools/items, then select your .dll file?
Exactly. I must've misread the problem. :S Thanks for answering him properly.

Re: Custom Control in a DLL and Import in Toolbox?!

Posted: Fri Apr 22, 2011 8:17 am
by Napster1488
It Inerhits original tabcontrol and then modified....
When importing it then it says there is nothing to import into the toolbox anyway....

Re: Custom Control in a DLL and Import in Toolbox?!

Posted: Fri Apr 22, 2011 8:42 am
by Axel
Set the framework to 2.0

Re: Custom Control in a DLL and Import in Toolbox?!

Posted: Fri Apr 22, 2011 9:33 am
by Napster1488
Axel wrote:
Set the framework to 2.0
Ok,ill try it later...i am away now for some Days ;)