Atozed Forums
Change active form - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Change active form (/thread-670.html)



Change active form - morhous - 09-18-2018

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();


RE: Change active form - Jose Nilton Pace - 09-18-2018

Hi, try REMOVE if.

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