help with ToolStripButton

hi all.

i have a TooStripButton on my toolbar.

on the button i have text and image.

can i know if the user clicks on the text or on the image




Answer this question

help with ToolStripButton

  • ebeofrei

    If you talking about a ToolStripButton on a ToolStrip and its DisplayStyle property set to "ImageAndText", then image and text on the ToolStripButton will work as single object.

    Anyway why do you want to capture click on the text and click on the image of a single button


  • waheyluggage

    Yes,

    you just need to add a System.EventHandler of the click to handle it.

    you add it from the event set in the attribute using the design mode



  • help with ToolStripButton