-
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
-
Add a 1 after your show command:
frmLoginDlg.Show 1
This forces the window to remain active.
-
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.