Visual Basic Code Source
Free and Unique code for Visual Basic
 Current page : Home      registerControls6Tutorial


Register Controls for Visual Basic 5.0/6.0


The command below will register your .ocx and .dll controls. If you ever get a error that the .ocx control is not registered, then you most likely need to register the control in the system registry. It is quite easy to do so. All you need to do is: Click the start button then click the run option in the menu.
In the edit box type in: regsvr32 pathofcontrol
Example: regsvr32 c:\windows\system\myocx.ocx
It will pop up a messagebox to let you know if it was registered correctly or not. Thats all there is to it.

Note: You only need to register Active X controls(Not controls made in c++ or similar language since they are static).
                Jason - Edited: 2007, May 21st

Visual Basic Code Source - Copyright 1999-2007