il like to know how to make ocx ,,, few examples will be great to learn from , how to make ocx files then use them please anyone
:eek::eek::eek::eek::eek:
Printable View
il like to know how to make ocx ,,, few examples will be great to learn from , how to make ocx files then use them please anyone
:eek::eek::eek::eek::eek:
The Creating an ActiveX Control chapter teaches you how to build a simple ActiveX control.
Open VB6, Create New Project, Choose ActiveX Control.
There is also a wizard to help you link properties of controls added to your control.
If you want a few examples then you should really try searching, I'm sure there are 100s of them available
thanks ladies and gents
ahh so simple basic understand what i seen is making ocx it acts as a form or a module am i correct
i opened form control like u said @datamiser and i am able to add buttons etc etc after tht compile it then in fresh project
add that ocx as reference then call out commands to that ocx ? is this right:p
Yes, that is correct.
A good way to make an OCX is to make it as part of your normal project. Then VB auto includes it as part of the tool box. This way you can modify you OCX code to get it to work correctly with your normal projects that uses the OCX. When you have perfected your OCX you can save it as an OCX file to be used with other projects. So, instead of opening VB6, creating a new project and selecting ActiveX Control you have your existing project and on menu bar click on Project then click on User Control. This open up a dialog box which you will select User Control (the icon on the left side). This opens up a window with a blank user control Form. Add you controls and your code then test it with your current project