I have a simple Form MyCustomForm, in a Form's Button in Clicked method I call a Class (method run), so I want to lock (or block) this form during run execution.
My code is look like this :
void clicked()
{// in Button clicked in **MyCustomForm**
MyClass myClass;
super();
myClass = new MyClass();
// here I want to freeze my FORM
myClass.run();
// here I want to unlock my Form
}
I need this because when class (MyClass) is running can display Dialog etc, but I don't want to touch/click and other on MyCustomForm caller.
If I use :
element.wait(); // not work well - block all myClass.run();
Thanks, enjoy.
*This post is locked for comments
Hi Crispin John Augustine, now I'm doing this way, but for me have a general solution blocking all Form it's better. Thanks anyway!
Hi DanielePax,
Please check this below link, may useful to you.
https://msdn.microsoft.com/en-us/library/formrun.lock.aspx
Thanks
Suresh
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156