Click here to Skip to main content
15,065,044 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all
i already create form and TopMost without any problem but if i run game or notepad or anything my form on top , my question is how to make excute for my run exe file to be top
my form .. using c# 2015

C#
FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            WindowState = FormWindowState.Maximized;
            this.TopMost = true;
            Process.Start("C:\\");


What I have tried:

C#
FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            WindowState = FormWindowState.Maximized;
            this.TopMost = true;
            Process.Start("C:\\");
            Process.Start = TopMost;
Posted
Updated 10-Mar-21 10:01am
v2
Comments
Richard MacCutchan 11-Mar-21 4:50am
   
You already have it on top; what is the problem?
Ahmed Adel 11-Mar-21 13:22pm
   
ya my form on top fine , but i need to let this form run game and make this game top form , at least i want my kids can`t control anything from my pc just icon to run game
Richard MacCutchan 12-Mar-21 5:12am
   
There are parental controls settings in Windows that you can use to lock access to features you do not want your children to use.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900