code to create function in class file disable multiple panel
which code is use to create function in class file to disable multiple panel
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jun 5, 2013, 3:58 PM
If you're calling this method from within the form which contains the panels, then call with:
DisablePanels(this);
If you're calling it from within some other form or class and you want to disable the panels on Form1 (say), then call with:
Form f1 = (Form1)Application.OpenForms["Form1"];
DisablePanels(f1);