Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object reference from a separate file in C#
Message
 
À
28/03/2013 05:51:46
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01569423
Message ID:
01569441
Vues:
32
>I created a form and a grid on it and there is a separate class file too in the project.
>Can I reference to the grid from the class file? If I can, how?
>Thanks

If the form lives and is in scope while you instantiate the class then you can pass it to a field or property of the class in the constructor. The grid is just a property of the class.

Hope this helps.

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform