How to bring a window foreground using c#?

前端 未结 6 1443
遥遥无期
遥遥无期 2020-12-30 13:37

I am trying to bring a window foreground. I am using this code. But its not working. Could someone please help?

ShowWindowAsync(wnd.hWnd, SW_SHOW);

SetForeg         


        
6条回答
  •  南方客
    南方客 (楼主)
    2020-12-30 14:02

    You should use SetForegroundWindow. Also it may be interesting for you C# Force Form Focus

提交回复
热议问题