08-31-2013, 06:13 AM
Hi, I have a little question here
I'm using a lot of properties but I don't know what value to use in my other subs. I find it hard to explain so I have an example:
[code2=vbnet]'This is the property itself
Private _TextCancelButton As String = "Cancel"
<Category("TextFields"), Description("The text shown in the Cancel button"), DefaultValue("Cancel")>
Public Property TextCancelButton() As String
Get
Return _TextCancelButton
End Get
Set(value As String)
_TextCancelButton = value
cmdCancel.Text = _TextCancelButton
End Set
End Property[/code2]
Now what should I use know to change the text of the Cancel button, for example when another button is clicked?
[code2=vbnet]cmdCancel.Text = _TextCancelButton
'or
cmdCancel.text = TextCancelButton[/code2]
I think it is the same, or not?
Thanks, Brecht
I'm using a lot of properties but I don't know what value to use in my other subs. I find it hard to explain so I have an example:
[code2=vbnet]'This is the property itself
Private _TextCancelButton As String = "Cancel"
<Category("TextFields"), Description("The text shown in the Cancel button"), DefaultValue("Cancel")>
Public Property TextCancelButton() As String
Get
Return _TextCancelButton
End Get
Set(value As String)
_TextCancelButton = value
cmdCancel.Text = _TextCancelButton
End Set
End Property[/code2]
Now what should I use know to change the text of the Cancel button, for example when another button is clicked?
[code2=vbnet]cmdCancel.Text = _TextCancelButton
'or
cmdCancel.text = TextCancelButton[/code2]
I think it is the same, or not?
Thanks, Brecht