CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2001
    Posts
    36

    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



  2. #2
    Join Date
    Aug 2000
    Location
    England
    Posts
    185

    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




  3. #3
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    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]
    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
  •  





Click Here to Expand Forum to Full Width

Featured