|
-
June 26th, 2010, 08:57 AM
#1
Is it possible to add a picture on the top of ContextMenuStrip
Hi,
Is it possible to add a picture above the items in a ContextMenuStrip? Or a panel on which there could be some fancy stuff like an animation? 
Many thanks!
Martin
-
June 26th, 2010, 03:53 PM
#2
Re: Is it possible to add a picture on the top of ContextMenuStrip
Yup, you can always write the code to do it. I have never tried to add images to a context menu strip, so maybe there is an easier way, but you can always just roll your own control by drawing it yourself and handling the mouse input.
-
June 26th, 2010, 05:05 PM
#3
Re: Is it possible to add a picture on the top of ContextMenuStrip
Hi, thanks for your advice. My idea is to use the standard menu strip control which has/will have different look in various Windows versions and add - preferably - a control-container on the top of it to display a picture / animation / a text hint etc. In the first instance I probably could draw a picture, but would be better to create something generic, and as I'm quite junior to C#/.NET hoped someone could point me to a piece of code to give me a hint.
-
June 26th, 2010, 07:10 PM
#4
Re: Is it possible to add a picture on the top of ContextMenuStrip
All it takes is a little knowledge. Learn how to draw using the Graphics class, override OnPaint, etc. Pretty basic concepts, there are already many tutorials out there.
-
June 29th, 2010, 04:34 PM
#5
Re: Is it possible to add a picture on the top of ContextMenuStrip
Yup, but I haven't found anything about ContextMenuStrip hosting another control and this was actually my question - if anyone had done it before and could share a few lines of code. In my case drawing a picture is just a quick win for the time being.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|