2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by FlamingClaw
0

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...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.