开发者

Program not getting displayed on startup

开发者 https://www.devze.com 2023-02-25 02:08 出处:网络
I have written a C# application for Windows Mobile 6.0 that I would like to be loaded on start up of the device.I have therefore put as shortcut to the executable in the \\Windows\\StartUp folder on t

I have written a C# application for Windows Mobile 6.0 that I would like to be loaded on start up of the device. I have therefore put as shortcut to the executable in the \Windows\StartUp folder on the device. I have checked the shortcut and it works fine.

My problem is that when I reboot the device the applicati开发者_如何学Pythonon is loaded but I see the Home screen. If I go to Task Manager I can see it there running. How can I make it so it is visible on start up.

Any help greatly appreciated.

Mike


Form.BringToFront

or

p/invoke SetForegroundWindow

-PaulH


Add a call to the your main Form's Load event to bring it to the fore and make sure it's visible.

0

精彩评论

暂无评论...
验证码 换一张
取 消