Thanks,
I just decided to launch it, keep up with the process variable and if they
click again, just kill it and relaunch. That way I am sure it is on top and
don't need to introduce unmanaged code.
A managed way of sending message to another app would be nice.
Shane.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2k************@uni-berlin.de...
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit: I would like to launch the calculator object.
Have it show at a certain X,Y coord and then next time the user clicks
the Calc icon on my app, if Calc is already running, have it maximize it if
it is minimized.
Is there a managed way to do something like this?
No.
ps. if not what calls should I use to restore when it is minimized?
P/invoke on 'ShowWindowAsync' + 'SW_MINIMIZE'.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>