Loading a WPF Window without showing it

Posted by svick on Stack Overflow See other posts from Stack Overflow or by svick
Published on 2009-09-09T11:12:57Z Indexed on 2010/04/04 20:53 UTC
Read the original article Hit count: 300

Filed under:
|

I create a global hot key to show a window by PInvoking RegisterHotKey(). But to do this I need that window's HWND, which doesn't exist until the window is loaded, that means shown for the first time. But I don't want to show the window before I can set the hot key. Is there a way to create a HWND for that window that is invisible to the user?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about hwnd