Jump to content

Recommended Posts

Posted

I'm trying to hide the current application window, ideally sending it to the background and forcing the homescreen to the front. I want to be able to return to the app, either by using task manager or launching the app shortcut. I've tried to use the GetDesktopWindow() followed by SetForegroundWindows() function but this doesn't seam to be available in c#. I'm developing using .net 2003 for Smartphone 2003 platform.

Guest MrMagoo
Posted

I don't know if .net has it's own way - I don't use it - but if you want to use this native (c++) code, it works:

keybd_event(VK_LWIN,0,0,0); 


keybd_event(VK_LWIN,0,KEYEVENTF_KEYUP,0);

just look in the help for keybd_event for details of which library to link

Posted

It does, just the job. Thanks, there's always so many ways to acheive what you want, it seems I'd tried and search for everything but sending the homekey, strange really as it right in front of me!

Thanks for you help

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.