Menu and FormBorderStyle = None

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
 
J

John Wood

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top