|
It may not work with a control.
Also that code finds the window by looking for a window with the correct title bar. So that needs a MapPoint application rather than a control.
(and you have to use the correctly title text)
You could try minimising the window that is holding the control? I don't know if that works, but it might force the control to minimise?
I suspect it won't, but it is definitely worth a try.
Richard |