2010-05-30 72 views

回答

2

ApplicationSetting綁定不允許將任何表達式應用於該值。簡單的解決方案是從Button中派生自己的控件。例如:

using System; 
using System.Windows.Forms; 

class MyButton : Button { 
    public bool Invisible { 
     get { return !Visible; } 
     set { Visible = !value; } 
    } 
} 
相關問題