If you want to retrieve the display text of the item, use the GetItemText
method:
string text = listBox1.GetItemText(listBox1.SelectedItem);
More Related Contents:
- Complex UI inside ListBoxItem
- Databinding to List – See changes of data source in ListBox, ComboBox
- Get the value for a listbox item by index
- Background color of a ListBox item (Windows Forms)
- How to bind Dictionary to ListBox in WinForms
- Binding Listbox to List in WinForms
- Bind multiple ComboBox to a single List – Issue: When I select an item, all combo boxes change
- How to change ListBox selection background color?
- How can I set different Tooltip text for each item in a listbox?
- Winforms DotNet ListBox items to word wrap if content string width is bigger than ListBox width?
- Implementing INotifyPropertyChanged – does a better way exist?
- Color different parts of a RichTextBox string
- The maximum number of characters a TextBox can display
- Accessing UI Control from BackgroundWorker Thread
- Winforms: Application.Exit vs Environment.Exit vs Form.Close
- Creating Custom Picturebox with Draggable and Resizable Selection Window
- Passing data between WinForms forms [duplicate]
- modifying the registry key value
- Panel for drawing graphics and scrolling
- Is there a quick way to get the control that’s under the mouse?
- How do I ensure a form displays on the “additional” monitor in a dual monitor scenario? [duplicate]
- How to disable creation of empty log file on app start?
- insert item in combobox after binding it from a Dataset in c#
- Refresh button – Refreshing data grid view after inserting, deleting, updating
- How to create vertical navigation bar in Windows Forms?
- Why controls do not want to get removed?
- Make a BackgroundWorker do several operations sequentially without freezing the form
- DataGridView Image for Button Column
- Is it possible to switch rows and columns in a datagridview?
- Winform – determine if mouse has left user control