Code to create function in class file disable multiple panel
which code is use to create function in class file to disable multiple panel
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jun 5, 2013, 11:58 AM EDT
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);