Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Usage value of properties
#2
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!
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
Usage value of properties - by brco900033 - 08-31-2013, 06:13 AM
Re: Usage value of properties - by brandonio21_phpbb3_import2 - 09-02-2013, 09:50 PM
Re: Usage value of properties - by Snake_eyes - 09-11-2013, 09:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Properties for UserControl brco900033 4 16,013 04-27-2013, 05:01 AM
Last Post: brco900033

Forum Jump:


Users browsing this thread: 1 Guest(s)