
Running single instance of VB program
oh, sorry
I tought that u are developing
VB -program, not using some
VBA -script.
hmmm....
Cannot answer to your question,
maybe there is some API -calls
that can solve your prob.
Tim
Quote:
> :)
> How can I do it while using only OCX called from scripts or html
> pages?
> >'Put this your startup -form's Form_Load -event
> >If App.PrevInstance = True Then
> > MsgBox "Program allready started!", 48, "MyProg"
> > Unload Me
> >End If
> >Regards
> >Tim
> >> Is there any way that one can limit a program so that only one
> >> instance of it runs at a time? i.e. if one tries to launch the program
> >> while another instance of that same program is running, it won't
> >> start, or the running instance will be activated.