Jump to content
  • Advertisement
Sign in to follow this  
Kryptus

[.net] Context Menu Images

This topic is 4845 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What ways are there for me to put images next to the text in my context menus in C# 2005? Is it even possible?

Share this post


Link to post
Share on other sites
Advertisement
The "standard" way is to OwnerDraw your own derived MenuItem. Since that's nasty and requires a lot of individual drawing operations, the cleaner but slightly more complicated solution is to use an IExtenderProvider, as shown here and here. Additionally, you could also use a third-party menu control. There are many cheap (< $100) GUI object suites out there, if you're working on a minimal budget. Or if you're on a big project, there's the big names like Infragistics and Syncfusion.

Share this post


Link to post
Share on other sites
Thanks that helped me a lot! Another question though, what about using the ContextMenuStrip control instead?

Share this post


Link to post
Share on other sites
The new *MenuStrip controls in .NET 2.0 let you add images, and are more powerful than the old menu controls.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!