How can i get application handle in C#
Application Handle
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
How can i get application handle in C#
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
AlanRank #669 · 3.6K reputationPosted Jul 17, 2008, 2:35 AM EDT
If you mean the current application's process handle, you can get this with:
System.Diagnostics.Process.GetCurrentProcess().Handle
If you mean the handle of the main window, this can be obtained with:
System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle