본문 바로가기
Programing/vb.net

비주얼베이직강좌,visual basic .net-누른 키보드 값 알아보기, e.KeyChar ,KeyPressEvent,

by 고니의 경제주식 2017. 2. 3.
반응형

Public Class Form1


    Private Sub Form1_KeyPress(sender As Object, e As KeyPressEventArgs) Handles Me.KeyPress


        If e.KeyChar = "0" Then

            MessageBox.Show("0 enter")

        End If


    End Sub

End Class

반응형