Announcements
No record found.
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 DanielePax,
Please check this below link, may useful to you.
https://msdn.microsoft.com/en-us/library/formrun.lock.aspx
Thanks
Suresh
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!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sagar Suman 2 Super User 2026 Season 1
Alexey Lekanov 2
Pratik Bhosle 2