+ 2

how make hidden window on C#....

i dont know how make external .exe file hiddens. I wanna start browser on background mode in C#(CreateNoWindow dont work)...... know, i'm stupid.

18th Dec 2020, 12:19 PM
Никита Семенюта
Никита Семенюта - avatar
4 Respostas
0
have a look at this link. https://stackoverflow.com/questions/5094003/net-windowstyle-hidden-vs-createnowindow-true ProcessStartInfo info = new ProcessStartInfo(fileName, arg); info.CreateNoWindow = true; info.UseShellExecute = false; Process processChild = Process.Start(info); CreateNoWindow does seem to work, it needs a little bit more
18th Dec 2020, 8:55 PM
sneeze
sneeze - avatar
0
dont work....
20th Dec 2020, 7:32 AM
Никита Семенюта
Никита Семенюта - avatar
0
Please elaborate more. What is your code ? What do you see? Do you get any error? Does it do the same if you try to start notepad?
20th Dec 2020, 8:10 AM
sneeze
sneeze - avatar
0
So... I'm test ProcessWindowStyle.Hidden and it work...but, thanks what u kill time on me. Sorry
20th Dec 2020, 9:30 AM
Никита Семенюта
Никита Семенюта - avatar