Question Make the app Excel in fronrt of Program.

Rabi

Member
Joined
Mar 22, 2022
Messages
17
Programming Experience
Beginner
After I export data from dataGridView to Excel. I want alway make the app of excel in front of the program.
 
If you are not afraid to use P/Invoke, try to send a WM_ACTIVATE message to the Excel window. If that doesn't work, you can change the Z-order by calling SetWindowPos().
 
 
Back
Top Bottom