What's the best way to sort text by first or last name in a multiline rich text box at run time. I wanted to add a button similar to Excel/Word. Thanks.
Printable View
What's the best way to sort text by first or last name in a multiline rich text box at run time. I wanted to add a button similar to Excel/Word. Thanks.
Doesn't matter which textbox control you are using, none of them support sorting their contents. You need to stick their contents into some variable (possibly an array of strings using Split) and sort that, then stick the results back into the textbox.
Either do what Slow_Learner said, or maybe think about using a control that will allow you to do it easier like the listbox.