What's the code to show the second form in delphi?
What do you say? :D
procedure TForm1.Button1Click(Sender: TObject); begin ShowWindow(Form2.Handle, SW_SHOWNOACTIVATE); Form2.Visible := True; end;
You can show the window (non modal) and reset the focus to the mainwindow.
procedure TMainForm.ButtonClick(Sender: TObject); begin OtherForm.Show; SetFocus; end;
This does not show the other form on top. But it is very counter intuitive to have a window on top that does not have the focus. :)
I hope these helps...