Program not getting displayed on startup
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.
精彩评论