-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