Disabling button

Jibrohni

Freshman
Joined
Apr 15, 2010
Messages
28
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
 
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.
 
Back
Top