title bar+C#
Windows Forms
3
Posts
3
Posters
0
Views
1
Watching
-
how can i change the title bar context menu to my own context menu......
-
how can i change the title bar context menu to my own context menu......
These functions might help: Menu Reference[^]
#region signature my articles #endregion
-
how can i change the title bar context menu to my own context menu......
using WndProc:
protected override void WndProc(ref Message m)
{
const int WM_CONTEXTMENU = 0x007B;if (m.Msg == WM\_CONTEXTMENU) { this.Dlg\_Menu.Show(Cursor.Position.X, Cursor.Position.Y); return; } base.WndProc(ref m);
}
See my stuff on:
<img src="http://www.gstatic.com/codesite/ph/images/code\_small.png" />