Images in menubar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How does one bring images in menu bars in .NET 2003 like Office has.
Similarly how to have toolbars that can be moved and can turn into palette
windows
 
Thank you for your reply.

Sandbar is a 3rd party control. Can this control be developed by coding in
C# or VB.NET etc.

Regards
Amey
 
Hi Amey,

You have to make a menu derived control which is "owner-drawn", which
involves responding to the OnMeasureItem and OnDrawItem events. In these
two events, you can alter the size and graphical content of your custom
MenuItem respectively. The latter of the two events allows you to draw
directly onto the MenuItem's surface, which means you can place icons,
bitmaps, lines, textures etc on it.

I'm fairly sure there's a comprehensive Dr Gui article on MSDN that explains
in detail how to do it, but there are certainly no shortage of examples on
the 'net, CodeProject would be another good place to look.

Kind Regards,
Alex Clark
 
Hello Alex

Thanks for your solution. It seems promising. I'll try and get back on this.

Amey
 
Back
Top