CodeItBetter Programming Another VB Programming Blog

How to Register and Unregister activeX dll’s and ocx’s from app when needed

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'Miscellaneous - How to Register and Unregister activeX dll's and ocx's from app when needed
Option Explicit
 
Public Sub Form_Load()
    'Registers active X on app load
    Shell "regsvr32 -s C:\TestXh.dll"
    'The -s is so no confirmation dialog is show
End Sub
 
Public Sub Form_Unload()
    'Unregisters active X on app close
    Shell "regsvr32 -s -u C:\TestXh.dll"
    'The -s as above, the -u to unregister no register
End Sub
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.