Ownerdrawn menus not working with Notify Icon

  • Thread starter Thread starter Andre Nogueira
  • Start date Start date
A

Andre Nogueira

Hi there.
I have created a Windows Control Library project within my solution (using
VB.Net 2003) and created a control which inherits the MenuItem class but
takes cares of the drawing of the menu.
So far so good. It takes care of all the drawing of the menuitems if they
are part of the form's mainmenu or if they are part of a context menu of an
item of the form (Listview, etc).
However, if the context menu is assigned to the Notify Icon control, the
menus are NOT drawn. The menus become just a few pixels wide with no text or
anything on them.
Why does this happen? Am I doing something wrong or is it a bug? Thanks!

André Nogueira
 
Thank you for your quick reply!
And is there any known workaround?

André Nogueira
 
Thanks ALOT!
I was already doing some research on the net to develop my own Notify Icon
and had already started coding.
That really saved me loads of time and works like a charm!
Thanks again

André Nogueira

"Mick Doherty"
 
Back
Top