Creating



Using Constructor

public partial class MyForm : System.Windows.Forms.Form 
{
  public MyForm()
  {
    InitializeComponent();
    this.Text = "Form Title";
  }
}


Using the Load Event

This is a windows form Built-in event

public partial class Form1 : System.Windows.Forms.Form 
{
  private void Form1_Load(object sender,
                          EventArgs e)
  {
    this.Text = "Form Title";
  }
}


© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext