Everytime I use Application.restart, it restarts my program but when it opens it again it focuses it and brings it to the front over all the other programs I have opened on my pc. For example if I'm playing a game and I use a key to trigger Application.restart, it will minimize my game and focus my program.How can I make application.restart not focus my program when it opens it?
3 Replies - 256 Views - Last Post: 03 November 2012 - 02:05 PM
#1
How to use Application.restart without focusing my program?
Posted 03 November 2012 - 01:20 PM
Replies To: How to use Application.restart without focusing my program?
#2
Re: How to use Application.restart without focusing my program?
Posted 03 November 2012 - 01:33 PM
I would think a Setting would work - when you call Restart you set the setting to true. When you open the app you check the Setting and if true then during form_load you set the windows state to minimize. -untested-
#3
Re: How to use Application.restart without focusing my program?
Posted 03 November 2012 - 01:35 PM
What - making a game cheat app?
Typically I would go into your program's load event and have it start the window state as minimized.
Typically I would go into your program's load event and have it start the window state as minimized.
Me.WindowState = FormWindowState.Minimized
#4
Re: How to use Application.restart without focusing my program?
Posted 03 November 2012 - 02:05 PM
Thanks that worked, don't know how I didn't remember that before, oh well I'm still learning though. And no I'm not trying to do a cheat app or any kind of malicious app, that would go far beyond my knowledge, like I said I'm still learning and not that I would need it anyway.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote






|