True Markus I had that on my VB example but he wanted it a lower level language :-) so when I converted to it I didn't put it there, but as u can see I didn't forgot the semi-colon ;
>Also, in this case where he just wants to "keep track of something when the timer fires", he doesn't even need a full property, but just a "field" (a member-variable, basically... very similar to a property in VFP) will do nicely:
>
>
private string myProperty;
>
>That's all that's needed, really.
>
>Markus
>
>
>
>>Why didn't u say so :-)
>>
>>private string myPropertyValue = "";
>>public string MyProperty {
>> get {
>> return myPropertyValue;
>> }
>> set {
>> //properties are nice when you want to also do some processing
>> //Me.HasChanged = True as an example
>> myPropertyValue = value;
>> }
>>}
>>
>>
>>>Thank you, Alexandre. I have to rethink your code to C# but you gave me a good start.
>>>
>>>>Dimitry you can try
>>>>on the form
>>>>Friend MyProperty as String
>>>>or
>>>>Private myPropertyValue As String
>>>>Public Property MyProperty() As String
>>>> Get
>>>> Return myPropertyValue
>>>> End Get
>>>> Set(ByVal value As String)
>>>> 'properties are nice when you want to also do some processing
>>>> 'Me.HasChanged = True as an example
>>>> myPropertyValue = value
>>>> End Set
>>>>End Property
>>>>
>>>>>I need to keep track of "something" as the Timer event (.Tick <g>) fires. In VFP world (used to be a language like that, maybe some of you older folk remember <g>) it was done by adding a custom property to a form. Then this property was in scope in any method of the form.
>>>>>
>>>>>Is there a way to set such a custom property to a Win.net form? Or, if not, what would be another way to do it?
>>>>>
>>>>>Thank you.
Alexandre Palma
Senior Application Architect