Results 1 to 3 of 3

Thread: Registor a control though VB

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Question

    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.

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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.

  3. #3
    Guest
    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
  •  



Click Here to Expand Forum to Full Width