FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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?
Related topics
FreeBSD 6.0 is up and running!
What about a topic on personnal software ?
VisualBasic 6.0 Help
Norton Internet Security 2005 & AIM 6.0
how about security of visual basic 6.0??
VB Help for those who need small pointers in Visual Basic
VB 6.0 saving multipul .txt from a text box need help
DataLife Engine v.6.0 Final - Great Script for your site
VMWare 6.0
VB 6.0 need help loading a .txt file into a text box
How can you get cpu usage to display in VB 6.0?
Adobe Photoshop CS2 vs CS3
(AYUDA)actualizaciar drupal 6.0
Debian 6.0 soon released
Reply to topic    Frihost Forum Index -> Scripting -> Others

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