Hi, Myrl Stadnick,


Override canClose method of that form, and call winAPI::minimizeWindow, when the form cannot be closed.

This is the sample code, but require new checkBox control (named "okToClose") with "autoDeclare" property is "Yes":

public boolean canClose()
{
    boolean ret;
    ret = super();
    if (okToClose.value() == NoYes::Yes)
    {
        ret = true;
    }
    else
    {
        ret = false;
        WinAPI::minimizeWindow(element.hWnd());
    }
    return ret;
}


Regards,

Sonny Wibawa Adi

Myrl Stadnick <[EMAIL PROTECTED]> wrote:

Does anybody know how I can prevent a form from closing but should minimize
when the close button on the upper right is clicked?


Regards,
Myrl Stadnick -  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
NRI Electronics Inc. - IT Technologist
________________________________________________________________

Confidential & Proprietary Information  -  For internal use only.




[Non-text portions of this message have been removed]






---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
 
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


           
---------------------------------
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'

[Non-text portions of this message have been removed]






Yahoo! Groups Links

Reply via email to