Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing ThisForm to a method
Message
From
25/10/2011 06:35:40
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01527250
Message ID:
01527251
Views:
58
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform