Tom F 83 Posted May 12, 2021 In VCL, how to make a fsStayOnTop form the active form? I have a main form and a non-modal subform. When the Main form is active, if the user enters a specific key associated with a shortcut on the non-modal form, my main form calls a method in the non-modal form. But, how can I make the non-modal form the active form when it receives this call? I've tried to assign Screen.ActiveForm and SuForm.Active, but both are read-only. Share this post Link to post
Anders Melander 1784 Posted May 12, 2021 TForm.SetFocus maybe. Otherwise I would think TForm.Show would activate the form - regardless of it being already visible. Share this post Link to post
Tom F 83 Posted May 12, 2021 TForm.SetFocus worked from the subform. Thank you, Anders! Share this post Link to post