About 50 results
Open links in new tab
  1. C#: easiest way to populate a ListBox from a List

    C#: easiest way to populate a ListBox from a List Ask Question Asked 15 years, 3 months ago Modified 7 years, 1 month ago

  2. How can I add an item to a ListBox in C# and WinForms?

    I'm having trouble figuring out how to add items to a ListBox in WinForms. I have tried: list.DisplayMember = "clan"; list.ValueMember = sifOsoba; How can I add ValueMember to the list …

  3. How to add headers to a multicolumn listbox in an Excel userform …

    20 Is it possible to set up the headers in a multicolumn listbox without using a worksheet range as the source? The following uses an array of variants which is assigned to the list property of the listbox, …

  4. C# removing items from listbox - Stack Overflow

    I have a listbox being populated from a SQLDATA pull, and it pulls down some columns that i dont want like OBJECT_dfj, OBJECT_daskd. The key is all of these being with OBJECT_, is there a way to r...

  5. How exactly do I create a multicolumn listbox in Visual Basic?

    How exactly do I create a multicolumn listbox in Visual Basic? Asked 9 years, 10 months ago Modified 5 years, 4 months ago Viewed 67k times

  6. Binding Listbox to List<object> in WinForms - Stack Overflow

    Dec 11, 2020 · What's the simplest way to bind a Listbox to a List of objects in Windows Forms?

  7. What is The difference between ListBox and ListView

    Jan 16, 2011 · Listview derives from listbox control. One most important difference is listview uses the extended selection mode by default . listview also adds a property called view which enables you to …

  8. Adding items in a Listbox with multiple columns - Stack Overflow

    Aug 7, 2011 · How can I add items in a list with 2 columns? It adds the items just in the first column if I use ListBox.AddItem. I want to add items in the 2nd column too. Thanks!

  9. c# add object to listbox and show string of object in it

    Nov 21, 2019 · 27 I'm using a ListBox and adding objects to it. The object contains 2 variables, let's say username and userid. How can I add the objects in the list (like listbox.Items.Add (object);) and show …

  10. c# - How to select item in ListBox - Stack Overflow

    Feb 16, 2017 · listBox.SelectedIndex = 5; listBox.UpdateLayout(); listBox.Focus(); Apparently, I was missing the last method, which sets the highlight to the selected item, which was updating fine even …