Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rename title of WinForms form

How do I rename the name of already created Windows Form? Currently, its default name is Form1 and when the application runs its name is shown in the top-left side of window. How do I rename this text to MyForm?

Refactoring changes the name of the .cs files, but the text in window does not change. Moreover, I tried to change default icon of the form by using Project->Properties->Browse to the location of the .ico file, but the default icon didn't change. Why doesn't that work?

like image 828
Nurlan Avatar asked Sep 17 '25 04:09

Nurlan


1 Answers

You would need to change the Form's Text property;

This can be done VIA the properties or within code;

enter image description here

Or (from the constructor)

this.Text = "MyForm";

Hope this helps?

like image 119
Hexie Avatar answered Sep 19 '25 18:09

Hexie