c# - Set position and size of a ClickOnce application -
i know if there way set position , size of clickonce deployed application, started via process.start. normal (.exe) applications there no problem, can that:
var externalappprocess = process.start("calc"); var externalappptr = externalappprocess.mainwindowhandle;
and use invoked movewindow set stuff position, size etc. however, when i'm starting appref-ms file, runs without issues, can't access mainwindowhandle, says "process has exited, requested information not available". ideas?
when launch *.appref-ms, rundll32 or dfshim process run. clickonce checking , starts executable of clickonce deployed application.
so may try finding main window handle this:
var processes = process.getprocessesbyname("clickoncedeployedapp"); foreach (process p in processes) { intptr windowhandle = p.mainwindowhandle; // }
Comments
Post a Comment