Results 1 to 3 of 3

Thread: App.Instance and .hide

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    4

    Question App.Instance and .hide

    Hi

    I was just wondering whether .Hide can effect App.PrevInstance.
    Sub Main()

    If App.PrevInstance Then
    ShowPrevInstance
    Else
    frmLoginDlg.Show
    End If

    End Sub

    this was in my Main and i have to add a frm.Hide after a function call . And when i try to provoke a the program after i've hidden it. it didn't seem to pop up the hidden window unless i click on the icon in the system tray.

    pls help.asap

    thanks in advance
    Waiting for the day to visit Jamaica....

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Add a 1 after your show command:

    frmLoginDlg.Show 1

    This forces the window to remain active.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    4

    Smile

    Kool,

    thank you mlewis, but i managed to overcome the problem by using vbminimized instead of hide. I found it working. but i still now sure what was the problem with hide and app.previnstance. Eitherway, i will try and use your suggestion next time.

    Thanks again for your reply.
    C.
    Waiting for the day to visit Jamaica....

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