Click here to Skip to main content
15,915,019 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to access Word pages ? [modified] Pin
Agarwaen595-Jun-09 0:00
Agarwaen595-Jun-09 0:00 
GeneralRe: How to access Word pages ? Pin
Christian Graus5-Jun-09 0:14
protectorChristian Graus5-Jun-09 0:14 
GeneralRe: How to access Word pages ? Pin
Agarwaen595-Jun-09 0:20
Agarwaen595-Jun-09 0:20 
GeneralRe: How to access Word pages ? Pin
Dave Kreskowiak5-Jun-09 4:24
mveDave Kreskowiak5-Jun-09 4:24 
QuestionHow to refresh datagridview? Pin
JC.KaNNaN4-Jun-09 20:59
JC.KaNNaN4-Jun-09 20:59 
AnswerRe: How to refresh datagridview? Pin
Christian Graus4-Jun-09 22:28
protectorChristian Graus4-Jun-09 22:28 
GeneralRe: How to refresh datagridview? Pin
JC.KaNNaN5-Jun-09 1:54
JC.KaNNaN5-Jun-09 1:54 
AnswerRe: How to refresh datagridview? Pin
Agarwaen594-Jun-09 23:27
Agarwaen594-Jun-09 23:27 
GeneralRe: How to refresh datagridview? Pin
JC.KaNNaN5-Jun-09 2:16
JC.KaNNaN5-Jun-09 2:16 
GeneralRe: How to refresh datagridview? Pin
Dave Kreskowiak5-Jun-09 4:22
mveDave Kreskowiak5-Jun-09 4:22 
QuestionWindows RDN name Pin
Nanda16054-Jun-09 20:02
Nanda16054-Jun-09 20:02 
AnswerRe: Windows RDN name Pin
dan!sh 4-Jun-09 23:07
professional dan!sh 4-Jun-09 23:07 
QuestionProblem using VB.Net to call DLL (containing pointers) written in C Pin
babybass4-Jun-09 14:30
babybass4-Jun-09 14:30 
AnswerRe: Problem using VB.Net to call DLL (containing pointers) written in C Pin
Christian Graus4-Jun-09 14:58
protectorChristian Graus4-Jun-09 14:58 
QuestionKeyEventArgs to Ascii Pin
nlarson114-Jun-09 11:34
nlarson114-Jun-09 11:34 
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 

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.