2011-12-13 13 views
0

在屬性對話框中顯示用戶創建方法的問題 所以我創建了最基本的文本框並將其添加到了一個winform中。 我可以看到_key和_value但該方法不顯示:(在屬性對話框中顯示用戶創建方法的問題

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.Windows.Forms; 
namespace testTextbox 
{ 
    public class myTextbox : TextBox 
    { 
     public string _key { get; set; } 
     public string _value { get; set; } 
     public void aa() 
     { 
// aa does not appear in the properties dialogue when the text box is on the form 
     } 
    } 
} 

我在哪裏去了? 感謝。

回答

3

方法不是在屬性網格中所示,只有屬性和事件如圖所示。

+0

那麼,這會立即結束這個問題。 – LarsTech 2011-12-13 19:52:09