【发布时间】:2014-03-14 15:11:36
【问题描述】:
How do you change the text in the Titlebar in Windows Forms?
当我打开一个新表单时,我希望它显示“Bob,下次我单击新建并打开一个表单时,它应该显示“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++;
}
【问题讨论】:
标签: c# winforms parent-child mdiparent