[DllImport("user32.dll")]
private static extern int GetSystemMenu(int HWND);
[DllImport("user32.dll")]
private static extern int AppendMenu(int MenuHandle, int Props, int
FlagsW, string text);
public const int BYPOSITION = 0x400;
//first get the handle of system menu
int hWnd = GetSystemMenu(myForm.Handle.ToInt32());
//append menu
AppendMenu(hWnd ,BYPOSITION,12345,"My new menu");
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.