-
When I use this to registor a control. The control doesn't work in design mode.
Code:
Private Declare Function RegMSINET Lib "MSINET.OCX" Alias "DllRegisterServer" () As Long
Private Declare Function UnRegMSINET Lib "MSINET.OCX" Alias "DllUnregisterServer" () As Long
Const ERROR_SUCCESS = &H0
Private Sub Command1_Click()
If RegMSINET = ERROR_SUCCESS Then
MsgBox "Registration Successful"
Else
MsgBox "Registration Unsuccessful"
End If
End Sub
Does anyone know how to registor a control so it can be used in the design enviroment.
-
In VB just shell RegSvr32.exe
Code:
Shell "c:\windows\system\regsvr32.exe MyDLL_OR.OCX", vbHide
'The path may differ at your computer
Or if you just need it for yourself Drag & Drop DLL's or OCX'es at RegSvr32.exe and you're done!
-
Take a look at this thread :rolleyes:.