Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object reference from a separate file in C#
Message
 
To
28/03/2013 05:51:46
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01569423
Message ID:
01569441
Views:
33
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform