Hi,
you can override the CreateParams property of the borderless form with
this one:
const int WS_CLIPCHILDREN = 0x2000000;
const int WS_MINIMIZEBOX = 0x20000;
const int WS_MAXIMIZEBOX = 0x10000;
const int WS_SYSMENU = 0x80000;
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;
}
}
Jocker
--
http://www.jockersoft.com/english/index.php
Salem wrote:
Hi!
I have a problem. When i set FormBorderStyle property of a form to None
i can't get the system menu (that windows menu with close, maximize,
minimize and other options) to show up when i right click on the form
button in the taskbar, (i guess that's because there is no titlebar or
control button).
Is there any way to display it, or better yet can i catch the right
click on the taskbar button and display my own app menu?
Thanks!