C# listbox
5:19
Added: 2 years ago
From: cac89
Views: 7,797
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (10)

Sign In or Sign Up now to post a comment!
  • Hey, i have 2 questions. I have 2 listboxes. In the forst listbox, there are words in english, and in the other, in an other language. I want to sort the english alphabetically, but i want the other listbox's items to move with the english listbox's. The other thing, that i want to scroll the 2 listbox together, and i now that i can change the TopIndex, but there is no scrolling event. Thx for help!

  • @torokt21 Regarding the sorting of the listbox, Elvisnowman007 has answered it below this comment. Also for the scrollbar you can try to set the listbox scrolling property to false in the properties panel. Finally in order to sort the two listboxes you can try to use a dictionary to map the two words and then use the index of the english word to sort the word that represents it in the other language. Hopefully that works. Goodluck

  • how do i sort the listbox alphabetically ?

  • @LPMineCraft It is simple . yourListBoxName.sorted = true

  • The FindStringExact is a function that looks for a string exactly how it is typed in or given by input. For example if the string I want to find is "CARS" and I pass in "Cars" as input, then I would not get any results. But if I pass in "CARS" as the string I want to find, then I would get back a result.

  • what is the code in FindStringExact

  • the code for the Add button is private void button3_Click(...){...}?

  • thanks

    

  • anyone help . control listbox item with double click ????

  • thanks

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more