C# – How to change the text in the Titlebar in Windows Forms

ctitlebarwinforms

I am trying to set a condition that would change the writing inside the title bar…

But how do I change the title bar text?

Best Answer

For changing the Title of a form at runtime we can code as below

public partial class FormMain : Form
{
    public FormMain()
    {
        InitializeComponent();
        this.Text = "This Is My Title";
    }
}