Property binding

G

Guest

..Net has this great abillity of binding controls direct to user settings.
I've made an user control that has a Text property, but when I use the
browse box in the property binding of the control, Text is not mentioned.
How do I add it?

My property:
Public Overrides Property Text() As String
Get
Text = TheControl.Text
End Get
Set(ByVal Value As String)
TheControl.Text = Value
End Set
End Property
 
G

Guest

Thanks,

I used

<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)> _
<System.ComponentModel.Browsable(True)> _

<System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Visible)> _
<System.ComponentModel.Bindable(True)> _

since I'm using VB.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top