Results 1 to 2 of 2

Thread: Help

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    BC
    Posts
    11

    Post

    Private Sub Form_Load()
    txtTwo.Visible = False
    lblTwo.Visible = False
    txtOne.Text = ""
    lblOne.Caption = "Place entry here"



    End Sub
    Sub txtOne_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then

    txtTwo.Visible = True
    lblTwo.Visible = True
    txtOne.Visible = False
    lblOne.Visible = False
    lblTwo.Caption = "Now place entry here"

    SendKeys "{tab}"
    KeyAscii = 0
    End If
    End Sub

    Sub txtTwo_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then

    txtTwo.Visible = False
    lblTwo.Visible = False
    txtOne.Visible = True
    lblOne.Visible = True
    lblOne.Caption = "Now place entry here"

    SendKeys "{tab}"
    KeyAscii = 0
    End If
    End Sub

    This is my first time programing in vb. The above mess makes a label and a texbox appear . How would you suggest I do this using Gotfocus.

  2. #2
    Member
    Join Date
    Jan 1999
    Location
    Garden Grove, CA, Orange
    Posts
    55

    Post

    What do you want to do?

    maybe I can help you.

    Joon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width