|
-
July 16th, 2001, 05:07 AM
#1
To suppress message box
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
-
July 16th, 2001, 05:10 AM
#2
Re: To suppress message box
You could try trapping the error and then simply resuming when the error occurs.
Try using:
On Error Resume Next
-
July 17th, 2001, 07:30 AM
#3
Re: To suppress message box
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
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|