Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to get the selected ToolStripeItem

How to get the selected ToolStripeItem

Scheduled Pinned Locked Moved C#
questiontutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    neus83
    wrote on last edited by
    #1

    Hi all, I was creating a ToolStripe with a few Buttons. I was creating a SplitButton. This Button has Items. i.e: Start Program 1 Start Program 2 Start Program 3 How can I get the select Text of the items ? My sample returns only the name of the split button :( MessageBox.Show("ITEM: " + item.Name + " " + ButtonBenutzerAuswahl.Selected.ToString());

    D 1 Reply Last reply
    0
    • N neus83

      Hi all, I was creating a ToolStripe with a few Buttons. I was creating a SplitButton. This Button has Items. i.e: Start Program 1 Start Program 2 Start Program 3 How can I get the select Text of the items ? My sample returns only the name of the split button :( MessageBox.Show("ITEM: " + item.Name + " " + ButtonBenutzerAuswahl.Selected.ToString());

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      Have you tried the item's Text property?

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
      Why are you using VB6? Do you hate yourself? (Christian Graus)

      N 1 Reply Last reply
      0
      • D DaveyM69

        Have you tried the item's Text property?

        Dave
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
        Why are you using VB6? Do you hate yourself? (Christian Graus)

        N Offline
        N Offline
        neus83
        wrote on last edited by
        #3

        no the item.text will not return the value of the selected DropDownItems

        D 1 Reply Last reply
        0
        • N neus83

          no the item.text will not return the value of the selected DropDownItems

          D Offline
          D Offline
          DaveyM69
          wrote on last edited by
          #4

          What type of items are you adding to your split button, and what value so you expect or want to get from them?

          Dave
          BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
          Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
          Why are you using VB6? Do you hate yourself? (Christian Graus)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups