Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27159

VS 2010 [RESOLVED] Hotkeys

$
0
0
Hi,

can someone help, where am i going wrong, they're not working?

Code:

Private Sub SelectPrograms_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
        If e.Control And e.KeyCode = Keys.S Then
            If CheckBox1.Checked = True Then
                CheckBox1.Checked = False
            ElseIf CheckBox1.Checked = False Then
                CheckBox1.Checked = True
            End If
        End If

        If e.Control And e.KeyCode = Keys.P Then
            CheckBox2.Checked = True
            Seconds_Remain.Enabled = False
            CheckBox2.Enabled = False
        End If

        If e.Control And e.KeyCode = Keys.I Then
            Editor.Show()
            CheckBox2.Checked = True
            Seconds_Remain.Enabled = False
            CheckBox2.Enabled = False
        End If
    End Sub


Viewing all articles
Browse latest Browse all 27159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>