I did try that. Actually I found a solution how to keep the text after recompiling. what I did was to include <DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> on the property...that way it will keep the user settings. Also you are correct that I needed to include...
The property looks like this
Public Property Shadows Text() As String
Get
Return Button1.Text
End Get
Set(ByVal value As String)
Button1.Text = Value
End Set
End Property
I don't have Visual Studio with me at the moment, but it should look...
Hi all,
I have a simple custom control with a button on it (composite control). Which I override the Text property so that in the property page I can set the "Text" property to reflect the text on the button. However, everytime when I recompile the control, the text on the button will go back...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.