Help with Idea

Discussion in 'Programming General' started by tomanderson12, Aug 29, 2008.

Help with Idea
  1. Unread #1 - Aug 29, 2008 at 5:41 PM
  2. tomanderson12
    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0

    tomanderson12 Member

    Help with Idea

    I am wanting to create a basic form with Labels, Text Boxes and a Button

    That has Empty text boxes then the Label such as AIM : Then the user fills out the form with other information such as AIM, E-Mail, etc then once the button is clicked the whole form appears in a new text box in order so AIM : Data user entered.

    Thanks
     
  3. Unread #2 - Aug 29, 2008 at 9:13 PM
  4. IVistaI
    Joined:
    Nov 6, 2007
    Posts:
    281
    Referrals:
    0
    Sythe Gold:
    0

    IVistaI Forum Addict

    Help with Idea

    You mean when you click it the text boxes become labels?

    Do something like this:

    Private Sub Command1_Click()
    MSNlbl.caption = MSN.text
    AIMlbl.caption = AIM.text
    end sub

    I'm not too sure what you mean, please explain a little clearer?
     
  5. Unread #3 - Aug 30, 2008 at 8:06 AM
  6. tomanderson12
    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0

    tomanderson12 Member

    Help with Idea

    Ok so theres a form with labels down the left text boxes on the right to enter the information from the labels on the left so like

    AIM: (Label) TextBox
    Name: TextBox
    Address: TextBox

    etc...

    Then when a button is clicked the information and the label name is put into a new text box
     
  7. Unread #4 - Aug 30, 2008 at 11:28 AM
  8. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    Help with Idea

    So basically...

    [ (Label 1) AIM: ] [ (Text1) Chumbawumba ]
    [ (Label 2) Name: ] [ (Text2) Sly Apes ]
    [ (Label 3) Address: ] [(Text3) 111 Rod Road ]

    And pressing the button Command1 would put into Text4...

    [Text4]
    AIM: Chumbawumba
    Name: Sly Apes
    Address: 111 Rod Road

    Assuming that's what you want all you need to do is set your Text4's multiline property to "True" and then use the following code.
    Code:
    Private Sub Command1_Click()
    Text4.Text = Label1.Caption + " " + Text1.Text + vbNewLine + Label2.Caption + " " + Text2.Text + vbNewLine + Label3.Caption + " " + Text3.Text
    End Sub
    
     
  9. Unread #5 - Aug 30, 2008 at 5:59 PM
  10. tomanderson12
    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0

    tomanderson12 Member

    Help with Idea

    Thank you soo soo much
     
< VB.Net 2008 coding problem | Mouse Click and Mouse Move. >

Users viewing this thread
1 guest


 
 
Adblock breaks this site