المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to get the selected ToolStripeItem



C# Programming
07-21-2009, 09:53 PM
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 buttonhttp://www.barakasoft.com/script/Forums/Images/smiley_frown.gif


MessageBox.Show("ITEM: " + item.Name + " " + ButtonBenutzerAuswahl.Selected.ToString());