作者jimcal (Go go Sixers!)
看板C_Sharp
标题[问题] ActivateMdiChild 和 saveFileDialog
时间Wed Jan 18 15:31:34 2006
我在照着Microsoft Visual C# .NET 程式设计之钥这本书实作时,
遇到了问题。
在22-8 做MDI的时候,我在Close Item Click方法中加入以下叙述:
private void closeItem_Click(object sender, System.EventArgs e)
{
Form childForm = this.
ActivateMdiChild;
if (childForm != null)
{
childForm.Close();
}
}
ActivateMdiChild出现错误,错误讯息如下:
: 叫用方法 'System.Windows.Forms.Form.ActivateMdiChild
(System.Windows.Forms.Form)' 时没有使用括号
--
It breaks your heart. It's designed to break your heart. The game begins
in the spring, when everything is new again, and it blossoms in the
summer, filling the afternoons and evenings, and then as soon as the
chill rains comes, it stops, and leaves you to face the fall alone.
--Angelo Bartlett Giamatti
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.106.156
※ 编辑: jimcal 来自: 140.112.106.156 (01/18 15:51)