subashbtechmba Posted July 30, 2009 Posted July 30, 2009 Hi, How to retrieve the winform controls from another Form? For Example i have winForm named as sample1,in which i want to write code for to retrieve controls of another form named as Sample2? Is It Possible? How to use control.controlcollection.find(formname)? Thanks Subash Quote
Administrators PlausiblyDamp Posted July 30, 2009 Administrators Posted July 30, 2009 If they are in the same project then the easiest way is probably for the sample1 form to expose a method which returns a collection of all the controls on sample1 and call this method from sample2. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.