How to

get currently active form for application

Published: 8. January 2009 | Updated: 8. January 2009
License: Microsoft Public License (MS-PL)
Categories: Winforms
Tags: C# Controls UI Winforms
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Windows.Forms;

Code

Form activeForm = Form.ActiveForm;
Send us feedback about this snippet »



Related Snippets: