Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you change the title or name of form1 in C#

Tags:

c#

winforms

I have a quick question. how do I change the name of form1 in my app? whenever I try to use the properties to rename it the form becomes broken and i cant use it anymore. is there a way to change it during run-time or am i doing something wrong with the properties? thanks.

like image 848
mendez Avatar asked Aug 07 '11 02:08

mendez


Video Answer


1 Answers

If you want to change the text of the window during runtime, use the Text property:

this.Text = "Title";

like image 124
user807566 Avatar answered Sep 20 '22 01:09

user807566