Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declaring a class in start form, use it in another.
Message
De
02/07/2002 11:44:32
 
 
À
02/07/2002 10:49:57
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00674416
Message ID:
00674508
Vues:
20
But are you using static methods and properties? If so, I think that you should be able to access them. Someone else jump in here and correct me if I'm wrong (I only played with static properties/methods once and it was a few months ago, so I'm not sure if I remember correctly and I can't find the code I had played with).

~~Bonnie


>The problem is that when I instanciate the class in the load of the start form, I cannot access it from any forms called from the main form.
>
>
>
>>Not 100% (since it's been awhile since I've messed with it, and only with C#, not VB) ... but can you use Static Methods in your class? (at least, I'm pretty sure you can do this in C#, wouldn't think VB would be any different).
>>
>>~~Bonnie
>>
>>
>>>Being a VFP programmer I can do it in Fox so there must be a way in VB.net. I have defined a class and load it in my start form. My start form calls several other forms. How do I instanciate my class so that it is accessible to all forms?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform