menustrip

Move window without border

醉酒当歌 提交于 2019-11-29 07:21:39
问题 How do I move a window that does not have a border. There is no empty space on the application, all that is available is a webbrowser and a menustrip. I would like the users to be able to move the window by dragging the menu strip. How do I code this? I have tried a few code blocks I have found online, but none of them worked. 回答1: This Code Project article should help you accomplish this. I've used this myself with no problems. This is the jist of it: public const int WM_NCLBUTTONDOWN = 0xA1

Using a Windows 7 style menustrip in Windows Forms [duplicate]

旧城冷巷雨未停 提交于 2019-11-28 04:39:28
问题 Possible Duplicate: Standard Windows menu bars in Windows Forms I am using windows forms and when I use a MenuStrip item, I get something that looks like this: http://imgkk.com/i/ggn1.png Is it possible to use menu strips like the ones the system uses, like in Windows Explorer, or Firefox, for example: http://imgkk.com/i/cxyg.png with Windows Forms, or C# in general? 回答1: Try using a MainMenu instead of a MenuStrip . The MainMenu will pick up the underlying operating system's current style,

How to change the appearance of a MenuStrip [duplicate]

旧城冷巷雨未停 提交于 2019-11-27 21:41:09
This question already has an answer here: How to change menu hover color 4 answers I add a MenuStrip in my app and is add on ManagerRenderMode at Render Mode . The problem is with the appearance, look offal. Look at those two photos, I want to change that white border of submenus in transparent, that blue rectangule that look offal on gray for the menu and for the submenu in dark gray (and his border that is a dark blue) and the border white of menu when is selected. How I can do this ? BackColor is: 36; 36; 36 and ForeColor is LightGray . I managed to change the blue rectangle, the white

How to change the appearance of a MenuStrip [duplicate]

回眸只為那壹抹淺笑 提交于 2019-11-26 20:46:16
问题 This question already has an answer here: How to change menu hover color 4 answers I add a MenuStrip in my app and is add on ManagerRenderMode at Render Mode . The problem is with the appearance, look offal. Look at those two photos, I want to change that white border of submenus in transparent, that blue rectangule that look offal on gray for the menu and for the submenu in dark gray (and his border that is a dark blue) and the border white of menu when is selected. How I can do this ?