Windows 7 [VISUAL BASIC 2010] Change the text property of a form using a button

Discussion in 'Programming and Scripting' started by Jack Gilmore, Mar 1, 2011.

  1. Jack Gilmore

    Jack Gilmore New Member

    Joined:
    Nov 19, 2010
    Messages:
    48
    Likes Received:
    0
  2. patcooke

    patcooke Microsoft MVP
    Staff Member Premium Supporter Microsoft MVP

    Joined:
    May 16, 2010
    Messages:
    5,456
    Likes Received:
    268
    double click on the command button and enter the following into the button click event:

    Form1.text = "what you want it to be"
     
  3. Jack Gilmore

    Jack Gilmore New Member

    Joined:
    Nov 19, 2010
    Messages:
    48
    Likes Received:
    0
    That doesn't work
     
  4. drago87

    drago87 New Member

    Joined:
    Mar 28, 2011
    Messages:
    2
    Likes Received:
    0
    [langtitle=sv]Re: [VISUAL BASIC 2010] Change the text property of a form using a button[/langtitle]

    [lang=sv]Du använder
    Me.text="Valfritt"[/lang]
     
  5. Jack Gilmore

    Jack Gilmore New Member

    Joined:
    Nov 19, 2010
    Messages:
    48
    Likes Received:
    0
    Re: [langtitle=sv]Re: [VISUAL BASIC 2010] Change the text property of a form using a button[/langtitle]

    Thank you drago!
     
  6. dstucom

    dstucom New Member

    Joined:
    Apr 7, 2011
    Messages:
    6
    Likes Received:
    0
    on button event
    write
    form1.title="your text";
     

Share This Page

Loading...