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?
You would need to change the Form's Text
property;
This can be done VIA the properties or within code;
Or (from the constructor)
this.Text = "MyForm";
Hope this helps?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With