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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Add Item in ListBarItem

Thread ID:





24679 Feb 9,2005 02:06 PM UTC Feb 23,2005 08:59 AM UTC WinForms 2
Tags: Tools
Gérald Coste
Asked On February 9, 2005 02:06 PM UTC

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 06:54 PM UTC

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 08:59 AM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon