Click here to Skip to main content
15,887,485 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Signed ActiveX Pin
Dave Kreskowiak20-Apr-09 4:05
mveDave Kreskowiak20-Apr-09 4:05 
AnswerRe: Signed ActiveX Pin
Eddy Vluggen20-Apr-09 7:01
professionalEddy Vluggen20-Apr-09 7:01 
QuestionObtain the checkedlistbox value Pin
Paul McGann19-Apr-09 21:50
professionalPaul McGann19-Apr-09 21:50 
AnswerRe: Obtain the checkedlistbox value Pin
RyanMorris19-Apr-09 23:04
RyanMorris19-Apr-09 23:04 
GeneralRe: Obtain the checkedlistbox value Pin
Paul McGann19-Apr-09 23:09
professionalPaul McGann19-Apr-09 23:09 
GeneralRe: Obtain the checkedlistbox value Pin
Paul McGann20-Apr-09 1:39
professionalPaul McGann20-Apr-09 1:39 
GeneralRe: Obtain the checkedlistbox value Pin
RyanMorris20-Apr-09 2:02
RyanMorris20-Apr-09 2:02 
QuestionProblem with WinForm Application Tab Control using VB.NET2008 Framework 2.0 Pin
drexler_kk19-Apr-09 21:29
drexler_kk19-Apr-09 21:29 
Hello all,

I would like to make the Tab movement can also pressing the "Enter" Key. I have google and found the code which possible to used. But I found its not running fine with me. When I press "Enter" key,it runs fine for the tab movement.
But if I put something into my textbox,it only allowed me to put 1 character and it will move next. Anyone can help me solve this? Because the Textbox 2 can able to put in any kind of numbers. But after add in the code that allowed "Enter" key move the Tabindex,it will move to the next tab index after I lick 1 character.

Please help me to check is that I use this code wrongly?

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

        If Keys.Enter Then
            SendKeys.Send("{TAB}")
            Exit Sub
        End If

        Select Case e.KeyChar
            Case "0" To "9"
            Case Microsoft.VisualBasic.ChrW(8) 'backspace
                'Case Microsoft.VisualBasic.ChrW(46) 'dot (.)
                '    If InStr(TextBox2.Text, ".") > 0 Then
                '        e.Handled = True
                '    End If

            Case Else
                e.Handled = True
        End Select

    End Sub


Thanks you all so much for reading. Anyone can give me some suggestion how should I do to make the "Enter" key press work as tab?
Regards
Drex
AnswerRe: Problem with WinForm Application Tab Control using VB.NET2008 Framework 2.0 [modified] Pin
S.M.kanerkar19-Apr-09 23:52
S.M.kanerkar19-Apr-09 23:52 
AnswerRe: Problem with WinForm Application Tab Control using VB.NET2008 Framework 2.0 Pin
drexler_kk20-Apr-09 5:07
drexler_kk20-Apr-09 5:07 
QuestionRegarding crystal report [modified] Pin
S.M.kanerkar19-Apr-09 20:01
S.M.kanerkar19-Apr-09 20:01 
QuestionHow to get the attachment ContentID from an Outlook.MailItem Pin
David Andersonq19-Apr-09 15:50
David Andersonq19-Apr-09 15:50 
QuestionI'm having some trouble with DirectX in VB Pin
NeoTechni19-Apr-09 8:55
NeoTechni19-Apr-09 8:55 
QuestionHow do you trap mouse clicks for save, copy and print? Pin
AndyASPVB19-Apr-09 2:33
AndyASPVB19-Apr-09 2:33 
AnswerRe: How do you trap mouse clicks for save, copy and print? Pin
Christian Graus19-Apr-09 14:39
protectorChristian Graus19-Apr-09 14:39 
QuestionProtected Overrides Function ProcessCmdKey Pin
AndyASPVB19-Apr-09 0:52
AndyASPVB19-Apr-09 0:52 
AnswerRe: Protected Overrides Function ProcessCmdKey Pin
Luc Pattyn19-Apr-09 1:17
sitebuilderLuc Pattyn19-Apr-09 1:17 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
AndyASPVB19-Apr-09 2:25
AndyASPVB19-Apr-09 2:25 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
Luc Pattyn19-Apr-09 2:42
sitebuilderLuc Pattyn19-Apr-09 2:42 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
paas19-Apr-09 4:09
paas19-Apr-09 4:09 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
AndyASPVB19-Apr-09 5:11
AndyASPVB19-Apr-09 5:11 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
paas19-Apr-09 7:04
paas19-Apr-09 7:04 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
AndyASPVB19-Apr-09 10:33
AndyASPVB19-Apr-09 10:33 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
HowitZer2623-Jun-09 7:25
HowitZer2623-Jun-09 7:25 
QuestionXML: Writing and Parsing of HTML code Pin
DHalo18-Apr-09 17:26
DHalo18-Apr-09 17:26 

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.