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

Re: Menu and FormBorderStyle = None by John

John
Wed Jun 23 07:57:57 CDT 2004

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.

--
John Wood
EMail: first name, dot, second name at priorganize.com


"Rafi Zisman" <cas202@yahoo.com> wrote in message
news:9dea2d92.0406230242.3efcd504@posting.google.com...
> 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



Re: Menu and FormBorderStyle = None by Rhy

Rhy
Thu Jun 24 12:19:10 CDT 2004

The open-source (read "free") menu control on SourceForge.net doesn't have
that problem. You can download it at
http://sourceforge.net/project/showfiles.php?group_id=111469.

"John Wood" <spam@isannoying.com> wrote in message
news:%23gxjwGSWEHA.3988@tk2msftngp13.phx.gbl...
>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.
>
> --
> John Wood
> EMail: first name, dot, second name at priorganize.com
>
>
> "Rafi Zisman" <cas202@yahoo.com> wrote in message
> news:9dea2d92.0406230242.3efcd504@posting.google.com...
>> 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
>
>