Click here to Skip to main content
15,909,199 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: VB6 TextBox truncates text in IE 11 Compatibility Mode Pin
Richard Deeming9-Apr-15 7:08
mveRichard Deeming9-Apr-15 7:08 
AnswerRe: VB6 TextBox truncates text in IE 11 Compatibility Mode Pin
Bill Cumming9-Apr-15 7:15
Bill Cumming9-Apr-15 7:15 
QuestionWM that has to do with pressing the enter key and TAB key. Pin
dilkonika8-Apr-15 13:29
dilkonika8-Apr-15 13:29 
AnswerRe: WM that has to do with pressing the enter key and TAB key. Pin
CHill608-Apr-15 13:44
mveCHill608-Apr-15 13:44 
GeneralRe: WM that has to do with pressing the enter key and TAB key. Pin
dilkonika8-Apr-15 13:48
dilkonika8-Apr-15 13:48 
GeneralRe: WM that has to do with pressing the enter key and TAB key. Pin
CHill608-Apr-15 13:58
mveCHill608-Apr-15 13:58 
GeneralRe: WM that has to do with pressing the enter key and TAB key. Pin
dilkonika8-Apr-15 15:35
dilkonika8-Apr-15 15:35 
GeneralRe: WM that has to do with pressing the enter key and TAB key. Pin
CHill608-Apr-15 23:41
mveCHill608-Apr-15 23:41 
This will capture all of the keys using the ProcessCmdKey override rather than WndProc
VB
Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean
        Const WM_KEYDOWN As Integer = &H100

        If ((msg.Msg = WM_KEYDOWN)) Then
            Select Case (keyData)
                Case Keys.Tab
                    Me.Label1.Text = "Tab Key Captured"
                Case Keys.Enter
                    Me.Label1.Text = "Enter Key Captured"
                Case Keys.Return
                    Me.Label1.Text = "Return Key Captured"
                Case Else
                    Me.Label1.Text = keyData.ToString
            End Select
        End If

        Return MyBase.ProcessCmdKey(msg, keyData)
    End Function
But I really don't understand your problem as this also works for me.
VB
Protected Overrides Sub WndProc(ByRef m As Message)
    Const WM_CHAR = &H102
    If m.Msg = WM_CHAR Then
        Return
    End If
    MyBase.WndProc(m)
End Sub

GeneralRe: WM that has to do with pressing the enter key and TAB key. Pin
dilkonika9-Apr-15 6:34
dilkonika9-Apr-15 6:34 
GeneralRe: WM that has to do with pressing the enter key and TAB key. Pin
dilkonika9-Apr-15 7:21
dilkonika9-Apr-15 7:21 
GeneralRe: WM that has to do with pressing the enter key and TAB key. Pin
CHill609-Apr-15 10:49
mveCHill609-Apr-15 10:49 
QuestionSelectedPath Property Pin
JKarov7-Apr-15 4:39
JKarov7-Apr-15 4:39 
AnswerRe: SelectedPath Property Pin
Richard Andrew x647-Apr-15 5:12
professionalRichard Andrew x647-Apr-15 5:12 
GeneralRe: SelectedPath Property Pin
JKarov7-Apr-15 5:15
JKarov7-Apr-15 5:15 
QuestionRe: SelectedPath Property Pin
Richard MacCutchan7-Apr-15 5:58
mveRichard MacCutchan7-Apr-15 5:58 
AnswerRe: SelectedPath Property Pin
JKarov7-Apr-15 8:28
JKarov7-Apr-15 8:28 
GeneralRe: SelectedPath Property Pin
Richard Deeming7-Apr-15 8:52
mveRichard Deeming7-Apr-15 8:52 
GeneralRe: SelectedPath Property Pin
Richard MacCutchan7-Apr-15 8:55
mveRichard MacCutchan7-Apr-15 8:55 
QuestionMake all the controls inside a Groupbox unusable, without disabling them Pin
dilkonika6-Apr-15 17:27
dilkonika6-Apr-15 17:27 
AnswerRe: Make all the controls inside a Groupbox unusable, without disabling them Pin
JR2126-Apr-15 22:12
JR2126-Apr-15 22:12 
GeneralRe: Make all the controls inside a Groupbox unusable, without disabling them Pin
dilkonika7-Apr-15 6:17
dilkonika7-Apr-15 6:17 
Questiondatabase access Pin
Mshindi6-Apr-15 8:30
Mshindi6-Apr-15 8:30 
AnswerRe: database access Pin
Dave Kreskowiak6-Apr-15 8:40
mveDave Kreskowiak6-Apr-15 8:40 
QuestionDetect if any of controls inside a TableLayoutPanel is clicked Pin
dilkonika5-Apr-15 17:39
dilkonika5-Apr-15 17:39 
AnswerRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
Richard MacCutchan5-Apr-15 22:03
mveRichard MacCutchan5-Apr-15 22:03 

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.