kadara
New member
- Joined
- Mar 15, 2013
- Messages
- 3
- Programming Experience
- Beginner
Hi.
I use the following code to catch some keys>
I would like to catch the Scroll+F12 combination, but the following code doesn't work:
I use the following code to catch some keys>
VB.NET:
[COLOR=#0000ff]If[/COLOR] e.KeyCode = Keys.F12
MsgBox("F12 pressed.")
[COLOR=#0000ff]End[/COLOR] [COLOR=#0000ff]If[/COLOR]
I would like to catch the Scroll+F12 combination, but the following code doesn't work:
VB.NET:
[COLOR=#0000ff]If[/COLOR] e.KeyCode = Keys.F12 AndAlso e.KeyCode = Keys.Scroll
MsgBox("F12 + Scroll pressed.")
[COLOR=#0000ff]End[/COLOR] [COLOR=#0000ff]If[/COLOR]