Atozed Forums

Full Version: Change active form
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how to change active page(form) 
i immediately release active form before jump to next form

The problem is if more than 1 user try to change form. it saying form already exist

below code will show you
TdashboardForm has labels. Each of them has different form to jump in

if not (WebApplication.ActiveForm is TdashboardForm) then
  TIWAppForm(WebApplication.ActiveForm).Release;
TuserAddForm.Create(WebApplication).Show();
Hi, try REMOVE if.

Code:
TIWAppForm(WebApplication.ActiveForm).Release;
TuserAddForm.Create(WebApplication).Show();