Jibrohni Posted June 21, 2010 Posted June 21, 2010 Good afternoon, I have a form that contains some user controls. Whilst any of the user controls are performing a certain function I would like to disable a button on their containing form. How can I do this when they are effectively separate classes? Form1.cs UserControl.cs Regards, Mike Quote
Administrators PlausiblyDamp Posted June 21, 2010 Administrators Posted June 21, 2010 Easiest way might be to have the user control raise an event when it starts and stops processing, the containing form could handle this event and enable or disable controls as appropriate. 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.