Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set an external EXE as TopMost

Tags:

c#

process

How would you set a program to become the topmost application using Process.Start() or something along those lines?

like image 484
x06265616e Avatar asked Aug 31 '25 16:08

x06265616e


1 Answers

After starting the proccess, I would start by getting the window handle of that process

Then, I would use SetWindowPos to set it to be the topmost

Notice that this requires using PInvoke. The 3 links should point you in the right direction.

like image 171
Blachshma Avatar answered Sep 02 '25 14:09

Blachshma