0

Re: VB.net, MenuItem, Select Event

Hello every one,

I am creating a owner drawn menu and I have a question about the MenuItem_Select event

Even though the menu iten is owner drawn this event is still fired.
I draw the select rectangle myself and I would like to know if their is a way to
disable this event or flag it as being unneeded.

Something like.
Private Sub MyMenuItem_Select(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyMenuItem.Select
e.Handled or e.DontDrawThisUglyRectangle
End Sub

Thanks in advance
WR

1
Contributor
1
Reply
12
Views
3 Years
Discussion Span
Last Post by William Ray
0

Sorry everyone but the problem was my error.
I found an e.drawbackground command that souldn't be there.
Removed it and it works OK.

William Ray

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.