Menu and FormBorderStyle = None

  • Thread starter Thread starter Rafi Zisman
  • Start date Start date
R

Rafi Zisman

Hi
I have a problem with menu and FormBorderStyle = None:
I opened new C# project and set the property FormBorderStyle = None ,
And added main menu. When I run the application and on the last pixel
of the menu, i have got a line drawn. This line divide the menu and
the rest of the form. How can I make the line disappear?

Thanks Rafi
 
I don't think there's much you can do about that. You could make your menu
owner-draw, but menu borders aren't usually overridable.

If you feel adventurous, you could trap the WM_NCPAINT and paint over the
line.
 
Back
Top