Click here to Skip to main content
15,902,114 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Detect if Shift button is pressed in general on a vb.net application Pin
Dave Kreskowiak21-Jun-15 11:59
mveDave Kreskowiak21-Jun-15 11:59 
GeneralRe: Detect if Shift button is pressed in general on a vb.net application Pin
satc21-Jun-15 14:29
satc21-Jun-15 14:29 
GeneralRe: Detect if Shift button is pressed in general on a vb.net application Pin
Ralf Meier21-Jun-15 18:40
mveRalf Meier21-Jun-15 18:40 
GeneralRe: Detect if Shift button is pressed in general on a vb.net application Pin
satc21-Jun-15 18:46
satc21-Jun-15 18:46 
GeneralRe: Detect if Shift button is pressed in general on a vb.net application Pin
Ralf Meier21-Jun-15 19:24
mveRalf Meier21-Jun-15 19:24 
GeneralRe: Detect if Shift button is pressed in general on a vb.net application Pin
satc21-Jun-15 19:35
satc21-Jun-15 19:35 
GeneralRe: Detect if Shift button is pressed in general on a vb.net application Pin
Ralf Meier21-Jun-15 20:37
mveRalf Meier21-Jun-15 20:37 
GeneralRe: Detect if Shift button is pressed in general on a vb.net application Pin
satc21-Jun-15 22:09
satc21-Jun-15 22:09 
1) I have enabled the KeyPreview property on the form.
2) after I've used this event :
VB
Private Sub MyForm_KeyDown(sender As Object, e As KeyEventArgs) Handles MyBase.KeyDown, MyBase.KeyUp

            If My.Computer.Keyboard.ShiftKeyDown Then
                ........
            Else
                ..........
            End if
    End Sub


Only with these 2 steps, almost everything Is working. So when I'm on the form , I can focus any control , and if I press the shift button , the event is working.

The only thing that doesn't work is when a MessageBox is showing. After that , the event doesn't fire when I release the shift button.
GeneralRe: Detect if Shift button is pressed in general on a vb.net application Pin
Ralf Meier21-Jun-15 23:38
mveRalf Meier21-Jun-15 23:38 
GeneralRe: Detect if Shift button is pressed in general on a vb.net application Pin
satc22-Jun-15 0:05
satc22-Jun-15 0:05 
AnswerRe: Detect if Shift button is pressed in general on a vb.net application Pin
Ralf Meier22-Jun-15 0:09
mveRalf Meier22-Jun-15 0:09 
QuestionOCX File not registered while complilation VB6 project in Windows 7 32 Bit but compile Pin
Member 1178058720-Jun-15 18:35
Member 1178058720-Jun-15 18:35 
QuestionA suggestion about an event log on a database Pin
satc19-Jun-15 18:11
satc19-Jun-15 18:11 
AnswerRe: A suggestion about an event log on a database Pin
Eddy Vluggen20-Jun-15 6:32
professionalEddy Vluggen20-Jun-15 6:32 
GeneralRe: A suggestion about an event log on a database Pin
satc20-Jun-15 11:45
satc20-Jun-15 11:45 
GeneralRe: A suggestion about an event log on a database Pin
Eddy Vluggen21-Jun-15 21:52
professionalEddy Vluggen21-Jun-15 21:52 
GeneralRe: A suggestion about an event log on a database Pin
satc21-Jun-15 22:12
satc21-Jun-15 22:12 
GeneralRe: A suggestion about an event log on a database Pin
Eddy Vluggen21-Jun-15 23:02
professionalEddy Vluggen21-Jun-15 23:02 
GeneralRe: A suggestion about an event log on a database Pin
satc21-Jun-15 23:42
satc21-Jun-15 23:42 
GeneralRe: A suggestion about an event log on a database Pin
Eddy Vluggen21-Jun-15 23:46
professionalEddy Vluggen21-Jun-15 23:46 
GeneralRe: A suggestion about an event log on a database Pin
satc21-Jun-15 23:48
satc21-Jun-15 23:48 
GeneralRe: A suggestion about an event log on a database Pin
Eddy Vluggen21-Jun-15 23:57
professionalEddy Vluggen21-Jun-15 23:57 
GeneralRe: A suggestion about an event log on a database Pin
satc22-Jun-15 0:04
satc22-Jun-15 0:04 
GeneralRe: A suggestion about an event log on a database Pin
Eddy Vluggen22-Jun-15 0:11
professionalEddy Vluggen22-Jun-15 0:11 
QuestionRegister XLL addin from VSTO excel addin project Pin
tazo8519-Jun-15 8:24
tazo8519-Jun-15 8:24 

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.