How to activate certain application?
I have used programm code from DaFox answered on question:"Send an email and attachment with Outlook Express".
There is two commanbds:
WndList := DisableTaskWindows(0);
EnableTaskWindows( WndList );
it seems to be solve my problem. but as a result I got activated not my application but another, why so happened. My application main form is MDIForm and I have proceed new form in Modal view. From last one I execute procedure to send mail (from DaFox) which include
MapiSendMail(MAPI_Session, Handle, MapiMessage, MAPI_DIALOG, 0);
after that the Modal form is not Modal, why so happened ?
Please help. Thanks.