BUG: Please confirm!

M

Mick Doherty

I was just playing around with ownerdraw menus and a NotifyIcon control. In
order to get the menus to display I thought I would call ContextMenu.Show to
display the menu. This works and the ownerdraw menus show as expected.
ContextMenu.Show needs to be called on a Visible control. Since this is a
NotifyIcon project I don't want the associated form to be visible, so to get
around this problem I just move the window off screen. This works great, but
there is a window in the Taskbar, so I must get rid of that. Simple enough,
but I found a curios problem with some of my custom controls. They were no
longer recieving the MouseEnter and MouseLeave events, which they need to
paint themselves properly.

I confirmed this bug to the showing and hiding of the Taskbars Window and
found it's not just my custom controls that have the problem. Can someone
please follow the steps below and confirm.

Add a label to a blank form with the following code:
\\\
Sub Label1.MouseEnter(...)Handles Label1.MouseEnter
Label1.Backcolor=Color.Red
End Sub

Sub Label1.MouseLeave(...)Handles Label1.MouseLeave
Label1.Backcolor = Color.Green
End Sub

Sub Label1.Click(...)Handles Label1.Click
Me.ShowInTaskbar = Not Me.ShowInTaskbar
End Sub
///

p.s. I just tried it in vb2005 and the problem is not there.
 
M

Mohamoss

Hi Mick
it is a reported problem that will be fixed in the next releases
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

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

Similar Threads

MouseHover doesn't work? 4
Change borderstyle on mouse hover 2
dragdrop misunderstanding 24
transparent labels on pictureboxes 2
Bug in IDE? 9
problem with checking FileUpload 2
User Control Events 1
Moving toolbox 2

Top