Results 1 to 4 of 4

Thread: Prev instance of application

  1. #1

    Thread Starter
    Addicted Member chander's Avatar
    Join Date
    Nov 2000
    Location
    New Delhi , India
    Posts
    225

    Prev instance of application

    i want to show main form of my prev application ( if it minimised it should come up means i want to set main form to vbnormal ) when second instance of application is started .. and close the second new instance...

    any tips on this ??

    If App.PrevInstance = True Then

    ' all action done here happned on new instance on application
    ' how to show prev application main form here ???

    End

    End If
    Chander
    Email:[email protected]

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. If App.PrevInstance = True Then
    2.    if me.WindowState = vbminimized Then
    3.       me.WindowState = vbnormal
    4.    end if
    5. endif

  3. #3

    Thread Starter
    Addicted Member chander's Avatar
    Join Date
    Nov 2000
    Location
    New Delhi , India
    Posts
    225
    well this doesnt work .. i have already tried it with my form object instead of me , still i checked with this code it opens new instance of app , does some action for 2-3 second and goes down if put End o/w it will show another instance of application ...
    Chander
    Email:[email protected]

  4. #4
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

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