How to create user controll in vb which can be used in different forms
Printable View
How to create user controll in vb which can be used in different forms
Create a new project, when the box appears, select ActiveX Control in stead of Standard Exe. When you created the control (added code and stuff), compile it to an ocx.
When you want to use the control in another project, select components from the projet menu and select the component. If it isn't there, click browse and select the ocx file you created. Now the control should be added to your toolbox.
Tom Cannaerts
[email protected]
The best way to escape a problem, is to solve it.
there is a very extensive tutorial on how to create your own controls on http://search.microsoft.com/us/SearchMS.asp
which deals with creating your own user controls. Search on "Creating an ActiveX Control" (Without the Quotes of course, then look for the start of the tutorial. It is about 200 printed pages.
John G