hello i wanna know how can i hide my application completly from windows and when i press a shortcut key it shows my application. please explain step by step thank you.
Printable View
hello i wanna know how can i hide my application completly from windows and when i press a shortcut key it shows my application. please explain step by step thank you.
have a look at the hotkeys example in my signature
ok paul thanks for the replay i went to your hotkey and download it, but didnt really understood anything lol you have to understand that i am a newbie so i need some explaination. i opened the project it even worked but how can i get that in own form.
can you post your code?
what keys do you want to use as a hotkey?
ok heres an easier example. when you doubleclick the form it hides, then when you press the hotkeys(Ctrl+A) it shows
vb Code:
Public Class Form1 ''API functions Private Declare Function RegisterHotKey Lib "user32" (ByVal hwnd As IntPtr, ByVal id As Integer, ByVal fsModifiers As Integer, ByVal vk As Integer) As Integer Private Declare Function UnregisterHotKey Lib "user32" (ByVal hwnd As IntPtr, ByVal id As Integer) As Integer ''indicates hotkey pressed Private Const WM_HOTKEY As Integer = &H312 ''modifier keycodes Private Const MOD_ALT As Integer = &H1 Private Const MOD_CONTROL As Integer = &H2 Private Const MOD_SHIFT As Integer = &H4 Private Sub Form1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.DoubleClick Me.Hide() End Sub Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing UnregisterHotKey(Me.Handle, 0) End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load RegisterHotKey(Me.Handle, 0, MOD_CONTROL, Asc("A")) End Sub Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) ''catch wm_hotkey message If m.Msg = WM_HOTKEY Then ''pressed the hotkey Me.Show() End If MyBase.WndProc(m) End Sub End Class