Click to See Complete Forum and Search --> : To suppress message box


Greenu Sharma
July 16th, 2001, 05:07 AM
Hi,
Actually am working on embedded Vb 3 in which the app.prevInstance is not working properly.

My mission is to avoid duplicate instance of a particular exe.
when i tried to open twice the same exe the windows CE is giving an error "cannot open file "

I too want the same thing but i want to suppress this message box .

how can i do this ?

please help me

Greenu

Andrew_Fryer
July 16th, 2001, 05:10 AM
You could try trapping the error and then simply resuming when the error occurs.

Try using:

On Error Resume Next

Iouri
July 17th, 2001, 07:30 AM
If you craete your project as ActiveX exe you can check option 'Unattended execution'. I believe that will supress msg boxes

Unattended Execution
Located on the General tab, this property can be set for code components that have no user interaction. In an ActiveX DLL project, this makes the DLL thread-safe (via Apartment-model threading).

In an ActiveX EXE project, it allows the component to be multithreaded. The implications and limitations of this property are discussed in "Building Code Components."

Note Components that contain UserDocuments, UserControls, and forms cannot be marked for Unattended Execution.



Iouri Boutchkine
iouri@hotsheet.com