先引用using System.ComponentModel;

 

//下面這段加到class上面的話則此控制項的一些說明會出現在左邊那條ToolBar上

[Browsable(true), Description("我是說明"), DefaultValue("welkingunther")]

 

//加到Property上面的話則此控制項的屬性就會出現該出現的

 

不過不知道為什麼加了Description後還是沒出現說明=.=

Browsable(false)就可讓某個屬性不出現

arrow
arrow
    全站熱搜

    welkingunther 發表在 痞客邦 留言(0) 人氣()