Dear All, If who use this classes and have got the same problem with me. Pls change this line METHOD GetDlgCode( nLastKey ) CLASS TSBUTTON // Remark this two lines * ::SendMsg( FM_CLICK ) // Add this line instead PostMessage( ::oWnd:oCtlFocus:hWnd, FM_CLICK ) return If( ::lActive, ...