Results 1 to 5 of 5

Thread: Prevent new application instances from loading

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    Manchester, UK
    Posts
    14

    Exclamation Prevent new application instances from loading

    hi all,

    Just a short question....

    I have an application that has collections (sessions) of objects and I want every time that the user tries to load another instance of the application (clicks on the *.exe file) not to be able to do so, but on the contrary to bring on top the open instance and perform some action with that (create new session and add it to the collection).

    I know how to check if there is another instance open and bring it on top, but I don't know how to perform some actions with this instance (run some of its code).

    Any IDEAS?>>>

    ThnX in advance!

    Chris
    Last edited by bourlis; Nov 7th, 2001 at 08:57 AM.

  2. #2
    Fanatic Member Bonker Gudd's Avatar
    Join Date
    Mar 2000
    Location
    Saturn
    Posts
    748

    This checks for same program...

    VB Code:
    1. If App.PrevInstance Then
    2.  
    3.       'Display message
    4.  
    5.       End 'Terminate the application
    6.  
    7.    End If

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    Manchester, UK
    Posts
    14
    Ok,
    but is there possible to send a message (before terminate the new instance) to the other (open) instance in order to perform some actions like execute some functions, create some new objects and so on?

    Thanx

  4. #4
    New Member
    Join Date
    Apr 1999
    Location
    Tiruppur, TamilNadu, India
    Posts
    7

    Changing the font size of the menu

    Hi All,
    How can we change the font size of the menu?
    TIA,
    kalpana

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    kalpana: I would suggest that you create your own thread for your question.

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