KeyPressイベント内で「Ctrl」キーの押下を検出する Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If System.Windows.Forms.Control.ModifierKeys <> Keys.Control Then e.Handled = True End If End Sub 本当にほしかったのはこういうブログだったんだ コメント: |