0
我正在创建一个组件,并需要使用文本属性...我无法使它工作。公共覆盖属性文本为字符串vb.net
的Visual Studio 2015年
Public Overrides Property Text() As String
Get
Return TextBox1.Text
End Get
Set(ByVal value As String)
TextBox1.Text = value
End Set
End Property
--->没有错误,但不可见
Public Property TText() As String
Get
Return TextBox1.Text
End Get
Set(ByVal Value As String)
TextBox1.Text = Value
End Set
End Property
---->工作......但我需要TEXT
THKS
http://stackoverflow.com/a/6484087/17034 [在编译后的设计师用户控件dissappears的文本]的 –
可能的复制( http://stackoverflow.com/questions/6483984/text-of-usercontrol-dissappears-in-designer-after-compilation) – Blackwood