I have the handle of another application's main form of a known type. I want to display that form in the foreground in the Default (Normal) condition. The current state of the form is either Minimized or Normal.
The best I have achieved is by using:
The problem with this is that if the form starts in a minimised state it is displayed correctly, but the Minimize button does not seem to work.
I am not very good with the Win API. Can anybody help?
Bob
The best I have achieved is by using:
Code:
ShowWindow(FormHandle, SW_SHOWDEFAULT);
SetForegroundWindow(FormHandle);
I am not very good with the Win API. Can anybody help?
Bob