04-12-2023, 08:38 PM
04-17-2023, 09:13 AM
Calling method Show() of any IWForm makes it the active one.
You can use one of many IWApplication methods do obtain a reference to that existing form. For instance:
FindFormByName(const AFormName: string), like:
var
myForm: TIWForm;
begin
myForm := WebApplication.FindFormByName('MyForm') as TIWForm;
if Assigned(myForm) then
myForm.Show();
end;
You can also use the ActiveForms[index] property directly if you know the position of the form that you need.
You can use one of many IWApplication methods do obtain a reference to that existing form. For instance:
FindFormByName(const AFormName: string), like:
var
myForm: TIWForm;
begin
myForm := WebApplication.FindFormByName('MyForm') as TIWForm;
if Assigned(myForm) then
myForm.Show();
end;
You can also use the ActiveForms[index] property directly if you know the position of the form that you need.