Toolstripmenuitem with checkbox and image

  • Thread starter Thread starter Yash Ganthe
  • Start date Start date
Y

Yash Ganthe

Hi,

What control should I use for displaying ToolstripMenuitems that have
a checkbox, an image and a label for that menu item?

You can see an example of this when you try to set the Toolbar options
in Visual Studio 2008, or in the toolbar options for Outlook 2007.
In VS 2008 if you click on the extreme right of the toolbar which
shows the Save, Save all, etc. , you see a menu which has all items
that are displayed that way.

What .NET control is it?
If I use ToolstripMenuItem control, it has Checked and Image
properties. If there is no image assigned at design time, I can see
the checkbox in the menu item. If the image is assigned, the image
appears over the checkbox.

Is there any setting that can help to show the check box besides the
image?

Thanks,
Yash
 
What control should I use for displaying ToolstripMenuitems that have
a checkbox, an image and a label for that menu item?

You can see an example of this when you try to set the Toolbar options
in Visual Studio 2008, or in the toolbar options for Outlook 2007.
In VS 2008 if you click on the extreme right of the toolbar which
shows the Save, Save all, etc. , you see a menu which has all items
that are displayed that way.

I have no idea what you mean by "set the Toolbar options in Visual Studio
2008." I right-clicked on a toolbar and went into Customize and I never saw
both a check box and an image displayed at the same time. This check box
itself is nothing more than an image that Windows draws for you, so this is
why it is not shown if you supply an image of your own.
What .NET control is it?
If I use ToolstripMenuItem control, it has Checked and Image
properties. If there is no image assigned at design time, I can see
the checkbox in the menu item. If the image is assigned, the image
appears over the checkbox.

Is there any setting that can help to show the check box besides the
image?

I doubt it. More than likely these apps are doing owner-draw on their menu
items to get this effect, but I'd still like to see an example for myself.
Can you be more specific how to get this in VS 2008? (I don't have Office
2007, or more specifically, I don't have it INSTALLED anymore, as I quickly
re-upgraded to 2003....)
 
Back
Top