Advertisement
IL_Coder

Hide Window [ By : Security.Najaf ]

Mar 5th, 2014
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.24 KB | None | 0 0
  1. Public Class Form1
  2.  
  3.     '-----------------------------------------
  4.     '>> C0DED BY : S4CUR1TY.N4JAF
  5.     '-----------------------------------------
  6.  
  7.     '>> Get Handle Any Window
  8.     Declare Function GetForegroundWindow _
  9.         Lib "user32" Alias "GetForegroundWindow" () As Integer
  10.     '>> Get Any KeyState
  11.     Private Declare Function GetKeyPress _
  12.         Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Integer) As Integer
  13.     '>> Hide Any Window
  14.     Private Declare Function CloseWindow _
  15.         Lib "user32" (ByVal Hwnd As IntPtr) As Boolean
  16.     '--------------------------------------------------------------------------------------
  17.     Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
  18.         '>> Get Handle
  19.         TextBox1.Text = GetForegroundWindow
  20.         '>> Hide Window Using Handle
  21.         CloseWindow(TextBox1.Text)
  22.     End Sub
  23.     Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  24.         '>> Hide Application
  25.         Me.Hide()
  26.     End Sub
  27.     Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles Timer3.Tick
  28.         '>> If Click Key "F" ,, Me End : )
  29.         If GetKeyPress(Keys.F9) Then
  30.             End
  31.         End If
  32.     End Sub
  33. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement