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
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.
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 2 months ago
@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
cac89 2 months ago
how do i sort the listbox alphabetically ?
LPMineCraft 4 months ago
@LPMineCraft It is simple . yourListBoxName.sorted = true
Evilsnowman007 3 months ago
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.
cac89 6 months ago
what is the code in FindStringExact
emahendar34 6 months ago
the code for the Add button is private void button3_Click(...){...}?
avi3007 1 year ago
thanks
05k81a0457 1 year ago
anyone help . control listbox item with double click ????
101greeneyes 1 year ago
thanks
blacklistnr1 2 years ago