Guest dh Posted April 8, 2004 Report Posted April 8, 2004 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 April 9, 2004 Report Posted April 9, 2004 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
Guest dh Posted April 9, 2004 Report Posted April 9, 2004 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now