display shortcut menu in taskbar
-
hi, I have a form with
this.FormBorderStyle = FormBorderStyle.None;
and I would like to display the standard shortcut menu that usually pops up when the user right clicks on a application button in the taskbar. How can I do this? Any suggestion is highly appreciated It would be cool to add some custom entries to the menu (as winamp does, see sceenshot[^]) but maybe I'm asking too much. Thanks in advance Jocker _______ JeniuS - the file Organizer -
hi, I have a form with
this.FormBorderStyle = FormBorderStyle.None;
and I would like to display the standard shortcut menu that usually pops up when the user right clicks on a application button in the taskbar. How can I do this? Any suggestion is highly appreciated It would be cool to add some custom entries to the menu (as winamp does, see sceenshot[^]) but maybe I'm asking too much. Thanks in advance Jocker _______ JeniuS - the file Organizerprivate const int WS_CHILD = 0x40000000;
private const int WS_CLIPCHILDREN = 0x2000000;
private const int WS_MINIMIZEBOX = 0x20000;
private const int WS_MAXIMIZEBOX = 0x10000;
private const int WS_SYSMENU = 0x80000;
private const int CS_DBLCLKS = 0x8;protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.Style = WS_CLIPCHILDREN | WS_MINIMIZEBOX | WS_SYSMENU;
cp.ClassStyle = CS_DBLCLKS;
return cp;
}
}_______ JeniuS - the file Organizer