Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing ThisForm to a method
Message
De
25/10/2011 06:35:40
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01527250
Message ID:
01527251
Vues:
59
>I have a GeneralPurpose Method where I do a lot of processing, all to do with Forms, but the Method can be called from different Forms. How do I pass the Current Form to amethod
>
>e.g. In a Click Button I want to: MyMethod(Thisform) (In VFP terms)
>
>What is the syntax to do this in C#
>
>Tia
>Gerard

Would control.FindForm() work for you ?

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.findform.aspx
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform