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

Jack Gilmore

New Member
Joined
Nov 19, 2010
Messages
48
Hey Guys,

I was just wondering if you could tell me what coding I need to use to change the text in a form using a command button. I have attached a pic to show what I mean.

Link Removed due to 404 Error

Thanks in advance :D
 

Solution
[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]
double click on the command button and enter the following into the button click event:

Form1.text = "what you want it to be"
 

double click on the command button and enter the following into the button click event:

Form1.text = "what you want it to be"

That doesn't work
 

[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]
 

Solution
Re: [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]
Thank you drago!
 

on button event
write
form1.title="your text";
 

Back
Top