R
Rick Strahl [MVP]
D
By default properties on a form are marked protected which means it's
visible within the same class or any of its subclasses. From within form
code snippets you should always be able to access a property with
this.<propertyName>.
If you pass the form as a reference to another external object though you
can no longer access any of the protected properties because they are scoped
to the form or its subclasses.
I'm not sure why your code isn't working if you are indeed in a form method
and ontop of it your accessor is set to public. You might want to make sure
you have the right property and class that you're dealing with.
Regards,
+++ Rick ---
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
By default properties on a form are marked protected which means it's
visible within the same class or any of its subclasses. From within form
code snippets you should always be able to access a property with
this.<propertyName>.
If you pass the form as a reference to another external object though you
can no longer access any of the protected properties because they are scoped
to the form or its subclasses.
I'm not sure why your code isn't working if you are indeed in a form method
and ontop of it your accessor is set to public. You might want to make sure
you have the right property and class that you're dealing with.
Regards,
+++ Rick ---
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp