D
Dave Wurtz
All,
I have a custom control that has a textbox on it. I want to be able to set
properties of the textbox in the IDE. I have exposed the textbox with a
property and it now shows up in my properties window in the IDE. I can set
attributes (i.e. character casing, etc.) but it will not 'save' those
settings by writing it back to the source code. What am I doing wrong here?
Public MyControl
Inherits UserControl
.... system generated control which adds a textbox and label to this control
Public ReadOnly Property TextBox As TextBox
'This property will expose the textbox to the properties window in the
IDE allowing me
'to change attributes of the textbox control, but they do not save.
This is my problem.
Return Me.TextBox1
End Property
End Class
Thanks in advance!
Dave Wurtz
I have a custom control that has a textbox on it. I want to be able to set
properties of the textbox in the IDE. I have exposed the textbox with a
property and it now shows up in my properties window in the IDE. I can set
attributes (i.e. character casing, etc.) but it will not 'save' those
settings by writing it back to the source code. What am I doing wrong here?
Public MyControl
Inherits UserControl
.... system generated control which adds a textbox and label to this control
Public ReadOnly Property TextBox As TextBox
'This property will expose the textbox to the properties window in the
IDE allowing me
'to change attributes of the textbox control, but they do not save.
This is my problem.
Return Me.TextBox1
End Property
End Class
Thanks in advance!
Dave Wurtz