Esc Tuşu İle Formu Gizleme
Bu örnekte esc tuşuna basarak formu gizleyeceğiz.
Imports System.IO
Public Class Form1
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.Escape Then
Me.Hide()
End If
End Sub
Private Sub Button1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Button1.KeyDown
If e.KeyCode = Keys.Escape Then
Me.Hide()
End If
End Sub
End Class
Bir sonraki makalede buluşmak üzere. Bahadır ŞAHİN