Click here to Skip to main content
15,892,674 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: KeyEventArgs to Ascii Pin
Henry Minute4-Jun-09 13:15
Henry Minute4-Jun-09 13:15 
AnswerRe: KeyEventArgs to Ascii Pin
Henry Minute4-Jun-09 13:40
Henry Minute4-Jun-09 13:40 
GeneralRe: KeyEventArgs to Ascii Pin
nlarson114-Jun-09 14:18
nlarson114-Jun-09 14:18 
GeneralRe: KeyEventArgs to Ascii Pin
Henry Minute4-Jun-09 23:42
Henry Minute4-Jun-09 23:42 
GeneralRe: KeyEventArgs to Ascii Pin
DidiKunz4-Jun-09 23:42
DidiKunz4-Jun-09 23:42 
AnswerRe: KeyEventArgs to Ascii Pin
Alan N5-Jun-09 0:19
Alan N5-Jun-09 0:19 
GeneralRe: KeyEventArgs to Ascii Pin
nlarson115-Jun-09 2:33
nlarson115-Jun-09 2:33 
AnswerRe: KeyEventArgs to Ascii Pin
nlarson115-Jun-09 4:04
nlarson115-Jun-09 4:04 
I found it.

When i googled, i looked for KeyEventArgs for a way to do it. Turns our in the keypress event even though 'e' doesn't expose anything regarding the shift/contrl/alt etc, you can test for them anyway.

Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
     If (Control.ModifierKeys And Keys.Control) = Keys.Control Then
         MsgBox("Pressed " + Keys.Control.ToString())
     ElseIf (Control.ModifierKeys And Keys.Shift) = Keys.Shift Then
         MsgBox("Pressed " + Keys.Shift.ToString())
     End If
End Sub


Thanks everyone
Nathan

'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous

'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous


QuestionQueryUnload Pin
No-e4-Jun-09 9:20
No-e4-Jun-09 9:20 
AnswerRe: QueryUnload Pin
Kschuler4-Jun-09 9:37
Kschuler4-Jun-09 9:37 
GeneralRe: QueryUnload Pin
No-e4-Jun-09 9:56
No-e4-Jun-09 9:56 
AnswerRe: QueryUnload Pin
0x3c04-Jun-09 10:11
0x3c04-Jun-09 10:11 
Questionget the parts of string Pin
ivo754-Jun-09 9:05
ivo754-Jun-09 9:05 
AnswerRe: get the parts of string Pin
Kschuler4-Jun-09 9:40
Kschuler4-Jun-09 9:40 
GeneralRe: get the parts of string Pin
ivo754-Jun-09 9:56
ivo754-Jun-09 9:56 
AnswerRe: get the parts of string Pin
Dave Kreskowiak4-Jun-09 9:42
mveDave Kreskowiak4-Jun-09 9:42 
QuestionDigital dashboard using VB or C# and other technologies [modified] Pin
Sciencez4-Jun-09 5:29
Sciencez4-Jun-09 5:29 
AnswerRe: Digital dashboard using VB or C# and other technologies Pin
dan!sh 4-Jun-09 5:39
professional dan!sh 4-Jun-09 5:39 
GeneralRe: Digital dashboard using VB or C# and other technologies Pin
Sciencez4-Jun-09 7:45
Sciencez4-Jun-09 7:45 
GeneralRe: Digital dashboard using VB or C# and other technologies Pin
Jon_Boy4-Jun-09 7:51
Jon_Boy4-Jun-09 7:51 
GeneralRe: Digital dashboard using VB or C# and other technologies Pin
Sciencez4-Jun-09 8:14
Sciencez4-Jun-09 8:14 
GeneralRe: Digital dashboard using VB or C# and other technologies Pin
dan!sh 4-Jun-09 22:56
professional dan!sh 4-Jun-09 22:56 
AnswerRe: Digital dashboard using VB or C# and other technologies Pin
0x3c04-Jun-09 8:58
0x3c04-Jun-09 8:58 
QuestionMaster and details saving Pin
atk88774-Jun-09 3:15
atk88774-Jun-09 3:15 
GeneralA word of advice Pin
Kschuler4-Jun-09 6:33
Kschuler4-Jun-09 6:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.