Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Tabbing to next edit box using Enter key

Tabbing to next edit box using Enter key

Scheduled Pinned Locked Moved C#
questioncsharp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    IrishSonic
    wrote on last edited by
    #1

    How do I tab to the next edit box using the Enter key?? Also how do I do a message box in c#?? Thanks

    K 1 Reply Last reply
    0
    • I IrishSonic

      How do I tab to the next edit box using the Enter key?? Also how do I do a message box in c#?? Thanks

      K Offline
      K Offline
      kharr1027
      wrote on last edited by
      #2

      I don't know about tabbing with the enter key but i can help you with the message box. do this and make sure caps are correct it is important in C# MessageBox.Show("type string to display here, in quotes","here in quotes again type what do be displayed at the top of the message box",MessageBoxButtons.OK(this is to choose from different buttons on a message box),MessageBoxIcon.Error) hope this helped:)

      D E 2 Replies Last reply
      0
      • K kharr1027

        I don't know about tabbing with the enter key but i can help you with the message box. do this and make sure caps are correct it is important in C# MessageBox.Show("type string to display here, in quotes","here in quotes again type what do be displayed at the top of the message box",MessageBoxButtons.OK(this is to choose from different buttons on a message box),MessageBoxIcon.Error) hope this helped:)

        D Offline
        D Offline
        dynamic
        wrote on last edited by
        #3

        C#:


        private void textBox1_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
        {
        if (e.KeyData.Equals(Keys.Enter))
        {
        textBox2.Focus();
        }
        }


        :) Vb:


        Public Function TwinsOnWay(ByVal twins As String) As String
        Select Case twins
        Case "Gender"
        Return "Two Girls"
        End Select
        End Function


        1 Reply Last reply
        0
        • K kharr1027

          I don't know about tabbing with the enter key but i can help you with the message box. do this and make sure caps are correct it is important in C# MessageBox.Show("type string to display here, in quotes","here in quotes again type what do be displayed at the top of the message box",MessageBoxButtons.OK(this is to choose from different buttons on a message box),MessageBoxIcon.Error) hope this helped:)

          E Offline
          E Offline
          eggie5
          wrote on last edited by
          #4

          I like it when you get an error message box and forgot that you had your speakers turned up all the way... /\ |_ E X E GG

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups