|
Una soluzione potrebbe essere usare direttamente le funzioni del sistema operativo ShowWindow, SetFocus e SetActiveWindow da user32.dll con
la funzione:
[System.Runtime.InteropServices.DllImport("user32.dll", CharSet=System.Runtime.InteropServices.CharSet.Auto)]
private static extern Boolean ShowWindow(IntPtr hWnd, Int32 nCmdShow);
...ecc ecc
poi usarle sull'handle della finestra così:
ShowWindow(HWND,1)
SetFocus(HWND)
SetForegroundWindow(HWND)
SetActiveWindow(HWND)
così da farlo funzionare.
Comunque se ci sono metodi più immediati lascio la parola agli altri utenti.
__________________
AMD Phenom II X6 3Ghz, MB Gigabyte 790xta-ud4 F4A, 4Gb Ram ddr3, HD Segate Barracuda 1T, SV ASUS GTX 560 Ti DirectCu II ,Monitor Philips 1920x1080 led 2 ms, Xbox360 Slim, Tablet Asus Transformer Pad TF300T, Gameboy Advance, Ipod Touch 16Gb
|