Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Scope of Properties
Forgive me if I sound confused. I was under the impression that if you add a property to a form, that property is available for the duration of the form. Example, I added a new property to a form, that will accept a parameter passed to it from another form. When I query the value of the property ( variable ? ), I see in the debugger that it is considered a local type. Am I just as far ahead to declare a public variable in the load event to accomplish the same thing, because the add property approach doesn't seem to do what I want. Of course I could be setting it up incorrectly.
I guess I misunderstood the use of properties, I was able to accomplish my objective by using a plain old public variable declaration. Properties I guess are restricted to classes and controls.
Thanks To All
Carmen
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement