我在照著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)