>>Hi All,
>>
>>I need to open the sysmenu of a form via code. How to do this?
>>
>>Agnes
>
>Agnes,
>
>I have this code in the Click of a form's commandbutton
>
>
>#define WM_COMMAND 0x0111
>#define WM_SYSCOMMAND 0x0112
>
>#define SC_KEYMENU 0xF100
>#define WM_CHAR 0x0102
>
>declare integer PostMessage in user32.dll long, long, long, long
>
>
>=PostMessage (m.thisform.hwnd, WM_SYSCOMMAND, SC_KEYMENU, 0)
>
>
>=PostMessage (m.thisform.hwnd, WM_CHAR , asc(space(1)), 0)
>
Hi Gregory,
this one opens the applications menu (Like "ALT"+ space"). I need the one of the form ("ALT" + "-").
Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]