>In VFP, we can create custom property and methods for specific form use only. So, I can have code like this:
>
>*Assign value to custom property. This property will be available in the entire module which serves as a variable.
>
>
Form1.MyCustomProperty1 = 10000
>
>*Call the form's custom method. This method will be available within the module only which serves as a procedure.
>
>
Form1.MyCustomMethod()
>
>Can we do it in VB???
Yes.
A public variable declared in the general section of a form result in a form property.
See also Property Let and Get if you want to do validation.
A public sub or function in a form result in a form method.