Click here to Skip to main content
16,006,013 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: key press event in vb.net Pin
DaveAuld13-May-10 20:31
professionalDaveAuld13-May-10 20:31 
GeneralRe: key press event in vb.net Pin
Wayne Gaylard13-May-10 20:57
professionalWayne Gaylard13-May-10 20:57 
AnswerRe: key press event in vb.net Pin
DaveAuld13-May-10 20:29
professionalDaveAuld13-May-10 20:29 
Questionkey pressed even in vb.net Pin
faisalali_7813-May-10 20:10
faisalali_7813-May-10 20:10 
AnswerRe: key pressed even in vb.net Pin
Johan Hakkesteegt13-May-10 20:14
Johan Hakkesteegt13-May-10 20:14 
QuestionEnter key pressed event Pin
faisalali_7813-May-10 19:56
faisalali_7813-May-10 19:56 
AnswerRe: Enter key pressed event Pin
Rajesh Anuhya13-May-10 20:04
professionalRajesh Anuhya13-May-10 20:04 
AnswerRe: Enter key pressed event Pin
Wayne Gaylard13-May-10 20:15
professionalWayne Gaylard13-May-10 20:15 
I assume you want it VB.Net not C#. Try this

VB.NET
Private Sub txtTest_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtTest.KeyDown

        If e.KeyCode = Keys.Enter Then
            MsgBox("You pressed the Enter Key")
        End If

    End Sub


Happy Coding
Questioncontext menu Pin
phowarso13-May-10 19:53
phowarso13-May-10 19:53 
AnswerRe: context menu Pin
DaveAuld13-May-10 20:28
professionalDaveAuld13-May-10 20:28 
Questionfor text box control in VB.net Pin
faisalali_7813-May-10 19:37
faisalali_7813-May-10 19:37 
AnswerRe: for text box control in VB.net Pin
Rajesh Anuhya13-May-10 19:51
professionalRajesh Anuhya13-May-10 19:51 
QuestionMessageBox.Show not raising HelpRequested event Pin
Trevortni13-May-10 8:42
Trevortni13-May-10 8:42 
AnswerRe: MessageBox.Show not raising HelpRequested event Pin
DaveAuld13-May-10 8:56
professionalDaveAuld13-May-10 8:56 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
Trevortni13-May-10 9:14
Trevortni13-May-10 9:14 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
DaveAuld13-May-10 9:21
professionalDaveAuld13-May-10 9:21 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
Trevortni13-May-10 9:48
Trevortni13-May-10 9:48 
AnswerRe: MessageBox.Show not raising HelpRequested event Pin
William Winner13-May-10 9:18
William Winner13-May-10 9:18 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
Trevortni13-May-10 9:46
Trevortni13-May-10 9:46 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
DaveAuld13-May-10 9:49
professionalDaveAuld13-May-10 9:49 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
DaveAuld13-May-10 9:47
professionalDaveAuld13-May-10 9:47 
QuestionRe: MessageBox.Show not raising HelpRequested event [modified] Pin
Trevortni13-May-10 10:39
Trevortni13-May-10 10:39 
AnswerRe: MessageBox.Show not raising HelpRequested event Pin
Trevortni13-May-10 12:04
Trevortni13-May-10 12:04 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
DaveAuld13-May-10 20:33
professionalDaveAuld13-May-10 20:33 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
Henry Minute14-May-10 2:02
Henry Minute14-May-10 2:02 

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.