FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

VB 6.0 need code to hide a appliction

 


andy26
hi i need a code so that when i minimize the program or click close it hides the program from the bottom task bar i know how to hide from task manager. so basicly when i click minimize the program dissapears but is still running and to bring it back up press some thing like ctrl+k to resume the program.
fromegame
Code:
Me.ShowInTaskbar = False
Me.WindowState = Minimized
Trickster
As a little supplement to the above, here is basicly what it should look like..
Code:
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 11 Then
    If Form1.WindowState = vbMinimized Then
        Form1.Show
        Form1.WindowState = Normal
    End If
End If
End Sub

Private Sub Form_Resize()
If Form1.WindowState = vbMinimized Then
    Form1.Hide
End If
End Sub


(the ascii code for Ctrl+k is 11).
andy26
the code above seems ok but for some reason it wont return to normal when i press ctrl + k i had changed that normal to vbnormal and it still wont work any ideas why?
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.