09-02-2013, 09:50 PM
Well, as you can see, one is a private variable (_TextCancelButton), and the other is a public property (TextCancelButton).
Because of this, you should use _TextCancelButton whenever you are referring to the variable within the class that contains the variable. For example, if _TextCancelButton is located in the code for Form1, only use _TextCancelButton in Form1's code.
If you're in any other class, use the TextCancelButton property.
I hope this helps!
Because of this, you should use _TextCancelButton whenever you are referring to the variable within the class that contains the variable. For example, if _TextCancelButton is located in the code for Form1, only use _TextCancelButton in Form1's code.
If you're in any other class, use the TextCancelButton property.
I hope this helps!