Ownerdrawn menus not working with Notify Icon

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
 
A

Andre Nogueira

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

André Nogueira
 
A

Andre 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"
 

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