activex registration

U

ubu

Is there anyway to tell if a particular control is
registered without first getting an error?

I'd like to register a control when a user logs in but I
want to register the control once. Is there a way to
tell if it's already registered and not repeat the
process?
 
M

Martin Seelhofer

Hi there

Not sure about it, but I roughly remember having done such things with
something like (Word) ActiveDocument.VBProject.References(x).IsBroken
a few years ago. You might find some more information in the VBA online
help...


Cheers,
Martin
 
S

Steve Lang

Why not force registration each time with an on error resume next? Although
I am not particularly sure if it would even generate an error unless the
control were missing in the first place. I think you can force registration
over and over if you need to.

On Error Resume Next
Shell "RegSvr32.exe /s MyControl.ocx"

....

Just a thought...

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top