Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the currently active form in my application?

Tags:

delphi

How to get the currently active (focused) form in my application?

like image 259
archit Avatar asked Apr 24 '15 11:04

archit


People also ask

How to get current active form in c#?

You can get a reference to the currently active form by using the static Form. ActiveForm property. Edit: If no Form has the focus, Form. ActiveForm will return null .

How do I make a form active?

Procedure. Right-click an empty cell, click Active Form, then click Insert Active Form. The Insert Active Form dialog box opens. Enter a name for the form in the Active Form Name box.

How check form is open or not in C#?

Form fc = Application. OpenForms["UpdateWindow"]; if (fc != null) fc. Close(); fm.


1 Answers

Screen.ActiveForm does the trick.

like image 200
Jens Borrisholt Avatar answered Sep 17 '22 21:09

Jens Borrisholt