Visual Basic form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ChelseaVB
    New Member
    • Nov 2007
    • 4

    Visual Basic form

    Hi, I want to create a program enabling the user to enter their name, address (first line of address) and date of birth. Their details will then appear in 2 output boxes, their name and address together and the DOB separately.

    I don’t know how to code it!

    any help will be appreciated =)

    Thanks
    Last edited by Killer42; Nov 19 '07, 02:25 AM.
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    So, you didn't try? Don't look for a codes. Just try what have you learned and we'll try to make solution for your mistakes if any. : )

    Comment

    • ChelseaVB
      New Member
      • Nov 2007
      • 4

      #3
      Hey, this is the coding...

      [CODE=vb]Private Sub Form_Load()

      End Sub

      Private Sub LblOutput_Click ()
      LblOutput.Capti on = strName + strAddress
      End Sub

      End Sub

      Private Sub LblOutput2_Clic k()
      LblOutput2.Capt ion = intDOB
      End Sub

      End Sub

      Private Sub TxtInput_Change ()
      Dim strName As String

      End Sub

      Private Sub TxtInput2_Chang e()
      Dim strAddress As String
      End Sub

      End Sub

      Private Sub TxtInput3_Chang e()
      Dim strDOB As String

      End Sub[/CODE]


      Once the user enters their details, it isn't displayed.

      Thanks
      Last edited by Killer42; Nov 19 '07, 02:24 AM. Reason: Added CODE=vb tag

      Comment

      • AHMEDYO
        New Member
        • Nov 2007
        • 112

        #4
        HI...

        try to check about variables scope you declare in your code

        Comment

        Working...