📎 AI Summary:
The thread discusses how to change the text of a Windows form using a command button. The original poster seeks coding assistance, with one responder suggesting setting `Form1.text` directly, but this approach doesn't work for the poster. Later, a solution is provided in a different language, using `Me.text="your text"`, which the original poster thanks, indicating the issue was resolved. Overall, the conversation centers on modifying form titles via button clicks, with a positive resolution.

Jack Gilmore

New Member
Joined
Nov 19, 2010
Messages
48
Thread Author #1
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]

patcooke

Microsoft MVP
Microsoft MVP
Joined
May 16, 2010
Messages
5,688
double click on the command button and enter the following into the button click event:

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

drago87

New Member
Joined
Mar 28, 2011
Messages
2
[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