|
-
Oct 8th, 2000, 02:14 PM
#1
Thread Starter
Ex-Super Mod'rater
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.
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Oct 8th, 2000, 03:32 PM
#2
Frenzied Member
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!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Oct 8th, 2000, 07:18 PM
#3
Take a look at this thread .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|