Click here to Skip to main content
15,916,692 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Check Computer Administrator Pin
HemJoshi24-Sep-08 23:17
HemJoshi24-Sep-08 23:17 
GeneralRe: Check Computer Administrator Pin
Gagan.2025-Sep-08 1:07
Gagan.2025-Sep-08 1:07 
AnswerRe: Check Computer Administrator Pin
jzonthemtn25-Sep-08 0:19
jzonthemtn25-Sep-08 0:19 
GeneralRe: Check Computer Administrator Pin
Gagan.2025-Sep-08 1:08
Gagan.2025-Sep-08 1:08 
QuestionRe: Check Computer Administrator Pin
Gagan.2025-Sep-08 1:26
Gagan.2025-Sep-08 1:26 
AnswerRe: Check Computer Administrator Pin
Jon_Boy25-Sep-08 3:56
Jon_Boy25-Sep-08 3:56 
QuestionOnBeforeKeyPress Pin
Ballita24-Sep-08 18:49
Ballita24-Sep-08 18:49 
AnswerRe: OnBeforeKeyPress Pin
User 81152324-Sep-08 19:08
User 81152324-Sep-08 19:08 
If you are talking about a control, Sure.

Private Sub Button1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Button1.KeyDown

End Sub

or you could just trap the keypress for the entire form with:

Set KEYPREVIEW on the FORM to TRUE and then you can do:

Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown

End Sub

Or

Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress

End Sub

I hope this helps. If not, just let me know.

modified 18-Dec-21 21:01pm.

QuestionAsking about Updating SQL Database row Pin
drexler_kk24-Sep-08 18:24
drexler_kk24-Sep-08 18:24 
AnswerRe: Asking about Updating SQL Database row Pin
Johan Hakkesteegt24-Sep-08 22:03
Johan Hakkesteegt24-Sep-08 22:03 
GeneralRe: Asking about Updating SQL Database row Pin
drexler_kk24-Sep-08 22:46
drexler_kk24-Sep-08 22:46 
GeneralRe: Asking about Updating SQL Database row Pin
Johan Hakkesteegt25-Sep-08 0:35
Johan Hakkesteegt25-Sep-08 0:35 
QuestionFormat Dates of TextBox or DateTimePicker Pin
sur07124-Sep-08 15:26
sur07124-Sep-08 15:26 
AnswerRe: Format Dates of TextBox or DateTimePicker Pin
User 81152324-Sep-08 17:52
User 81152324-Sep-08 17:52 
GeneralRe: Format Dates of TextBox or DateTimePicker Pin
sur07124-Sep-08 23:41
sur07124-Sep-08 23:41 
GeneralRe: Format Dates of TextBox or DateTimePicker Pin
User 81152325-Sep-08 10:21
User 81152325-Sep-08 10:21 
QuestionWeird IE7 DocumentComplete Error. Pin
User 81152324-Sep-08 12:23
User 81152324-Sep-08 12:23 
AnswerRe: Weird IE7 DocumentComplete Error. Pin
Steven J Jowett24-Sep-08 13:05
Steven J Jowett24-Sep-08 13:05 
GeneralRe: Weird IE7 DocumentComplete Error. Pin
User 81152324-Sep-08 15:41
User 81152324-Sep-08 15:41 
GeneralRe: Weird IE7 DocumentComplete Error. Pin
Johan Hakkesteegt24-Sep-08 21:42
Johan Hakkesteegt24-Sep-08 21:42 
GeneralRe: Weird IE7 DocumentComplete Error. [modified] Pin
User 81152325-Sep-08 10:14
User 81152325-Sep-08 10:14 
GeneralRe: Weird IE7 DocumentComplete Error. [modified] Pin
User 81152325-Sep-08 12:03
User 81152325-Sep-08 12:03 
QuestionFont Color Change Pin
Member 457761924-Sep-08 8:42
Member 457761924-Sep-08 8:42 
AnswerRe: Font Color Change Pin
Dave Kreskowiak24-Sep-08 9:34
mveDave Kreskowiak24-Sep-08 9:34 
AnswerRe: Font Color Change Pin
Paul Conrad24-Sep-08 10:57
professionalPaul Conrad24-Sep-08 10:57 

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.