We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Add Item in ListBarItem

Thread ID:

Created:

Updated:

Platform:

Replies:

24679 Feb 9,2005 09:06 AM Feb 23,2005 03:59 AM Windows Forms 2
loading
Tags: Tools
Gérald Coste
Asked On February 9, 2005 09:06 AM

Hi, I hope you''ll can help me. I have a list of Users in a array. In my menu, I have a ListBarItem. I want to put all my users in the ListBarItem by code. Could you help me ? Have you an example ? When I''ll have my users in my menu. How can I know what is the user that click on ? Thank''s ! Please, excuse my poor english :-) Gedge

Administrator [Syncfusion]
Replied On February 9, 2005 01:54 PM

Hi Gedge, From the Class documentation for ListBarItem: "When shown this bar item will be replaced by a numbered list of BarItems based on the supplied ChildCaptions list and when one of the items gets clicked by the user a Click event is thrown by this instance with the ListBarItemClickedEventArgs args." Basically, you use ListBarItem.ChildCaptions.Add to add more items. And when the ListBarItem is clicked you can cast the EventArgs from the Click event into a ListBarItemClickedEventArgs and then use the SelectedIndex property of that to determine which choice was selected. I have created a sample to demonstrate this. Please let me know if you have any further questions. Regards, Gregory Austin Syncfusion, Inc.

Gérald Coste
Replied On February 23, 2005 03:59 AM

Hi, Your example is exactly what I was looking for. Thanks a lot Gedge

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;