Click here to Skip to main content
15,890,995 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionstopping system .threading.timer Pin
Ebube26-Aug-09 22:20
Ebube26-Aug-09 22:20 
AnswerRe: stopping system .threading.timer Pin
Johan Hakkesteegt26-Aug-09 22:53
Johan Hakkesteegt26-Aug-09 22:53 
QuestionCreate Graph using VBA with the data?? Pin
veon cheng26-Aug-09 21:16
veon cheng26-Aug-09 21:16 
AnswerRe: Create Graph using VBA with the data?? Pin
Dave Kreskowiak27-Aug-09 3:37
mveDave Kreskowiak27-Aug-09 3:37 
QuestionHow realtime application works? Pin
Gagan.2026-Aug-09 17:48
Gagan.2026-Aug-09 17:48 
AnswerRe: How realtime application works? Pin
Dave Kreskowiak27-Aug-09 3:36
mveDave Kreskowiak27-Aug-09 3:36 
QuestionNeed help detecting keypress outside of form vb2008 Pin
RyJaBy26-Aug-09 4:12
RyJaBy26-Aug-09 4:12 
AnswerRe: Need help detecting keypress outside of form vb2008 Pin
Dave Kreskowiak26-Aug-09 4:18
mveDave Kreskowiak26-Aug-09 4:18 
RyJaBy wrote:
This code seems to work for detecting the keypress as long as your focus is on the form. I think it has to do with the handles myBase.keypress. Am i correct that mybase.keypress is looking for a key being pressed inside the form?


Yes, that's right. The form key events will only fire if the form has the input focus.


RyJaBy wrote:
Is there something else that i could write such as system.keypress or something that could detect any time the key is pressed?


No, there's no such event. You'd have to use a far more advanced technique called a "global keyboard hook". Just Google for that phrase, and maybe add "VB.NET" to the end, and you'll come up with loads of examples.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: Need help detecting keypress outside of form vb2008 Pin
RyJaBy26-Aug-09 4:50
RyJaBy26-Aug-09 4:50 
GeneralRe: Need help detecting keypress outside of form vb2008 Pin
Tom Deketelaere26-Aug-09 5:02
professionalTom Deketelaere26-Aug-09 5:02 
GeneralRe: Need help detecting keypress outside of form vb2008 Pin
Dave Kreskowiak26-Aug-09 5:05
mveDave Kreskowiak26-Aug-09 5:05 
AnswerRe: Need help detecting keypress outside of form vb2008 Pin
o m n i27-Aug-09 6:11
o m n i27-Aug-09 6:11 
QuestionGet mouse point image without ruining alpha Pin
o m n i26-Aug-09 3:53
o m n i26-Aug-09 3:53 
AnswerRe: Get mouse point image without ruining alpha Pin
Dave Kreskowiak26-Aug-09 4:11
mveDave Kreskowiak26-Aug-09 4:11 
GeneralRe: Get mouse point image without ruining alpha Pin
o m n i26-Aug-09 4:25
o m n i26-Aug-09 4:25 
AnswerRe: Get mouse point image without ruining alpha Pin
o m n i26-Aug-09 5:02
o m n i26-Aug-09 5:02 
GeneralRe: Get mouse point image without ruining alpha Pin
Dave Kreskowiak26-Aug-09 5:06
mveDave Kreskowiak26-Aug-09 5:06 
QuestionHelp with Checkbox please Thanks Pin
Bob Beaubien26-Aug-09 3:11
Bob Beaubien26-Aug-09 3:11 
AnswerRe: Help with Checkbox please Thanks Pin
Jay Royall26-Aug-09 3:35
Jay Royall26-Aug-09 3:35 
AnswerRe: Help with Checkbox please Thanks Pin
Dave Kreskowiak26-Aug-09 3:59
mveDave Kreskowiak26-Aug-09 3:59 
GeneralRe: Help with Checkbox please Thanks Pin
Bob Beaubien26-Aug-09 6:19
Bob Beaubien26-Aug-09 6:19 
GeneralRe: Help with Checkbox please Thanks Pin
Dave Kreskowiak26-Aug-09 6:21
mveDave Kreskowiak26-Aug-09 6:21 
Questionpowerpoint show Pin
Omar Mallat25-Aug-09 21:05
professionalOmar Mallat25-Aug-09 21:05 
AnswerRe: powerpoint show Pin
Christian Graus25-Aug-09 21:07
protectorChristian Graus25-Aug-09 21:07 
QuestionOutlook Write Events problem Pin
dcdhingra25-Aug-09 20:01
dcdhingra25-Aug-09 20:01 

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.