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.
VB 6.0 need code to hide a appliction
| Code: |
| Me.ShowInTaskbar = False
Me.WindowState = Minimized |
As a little supplement to the above, here is basicly what it should look like..
(the ascii code for Ctrl+k is 11).
| 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).
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?
