[SOLVED] [LAMW] Unable to show a second form lazarus / 43-Android ---------------------------------------------------------------------- pasquale · 2021-01-16 17:13 Hello, In Laz4Android (LAMW), I'm trying to open a second form using the following code: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TfrmFirst.btnShowSecondClick(Sender: TObject);begin   if frmSecond = nil then    begin      gApp.CreateForm(TfrmSecond, frmSecond);      frmSecond.InitShowing(gApp);    end     else    begin      frmSecond.ReInitShowing(gApp);    end; end;  When I clic on the button, the first form does not disappear but stays on the background, and the components present in the second form overlap with those of the first. So, the screen becomes a mess. Replacing "frmSecond.InitShowing(gApp);" with "frmSecond.Show;" doesn't change anything. What am I doing wrong? Thanks. ---------------------------------------------------------------------- pasquale · 2021-01-16 19:14 Probably, it is more correct for me to say that I am unable to hide the first form, rather than show the second one. In fact, the second form shows up but overlaps with the first, which does not hide itself. As far as I know, Form1.Hide can't be used in Laz4Android. ---------------------------------------------------------------------- jmpessoa · 2021-01-16 19:38 By default the forms are transparent.... So you need set some background color... ---------------------------------------------------------------------- pasquale · 2021-01-16 19:47 Quote from: jmpessoa on January 16, 2021, 08:38:17 pm By default the forms are transparent.... So you need set some background color... THANK YOU! Once again, you've solved my problem.