-1
How do you change the text in the Titlebar in Windows Forms?打開一個新的子窗體
時,如何增加一種新形式的名稱,當我打開一個新的形式,我希望它說:「鮑勃,下一次我點擊新打開的形式,它應該說「Bob1」 我試圖用TryParase()到串並不會工作。
private void newToolStripMenuItem_Click(object sender, EventArgs e)
{
Form2 childform2 = new Form2();
decimal childcount;
childform2.MdiParent= this;
string menuname;
menuname = "untilted" + childcount.ToString();
childform2.Text = menuname;
childform2.Show();
childcount++;
}
哦哇, 呃謝謝! – TangoIndiaMIke