How to select textbox values in windows form
I've set textbox as mult开发者_Python百科iline, and now whenever I mouse click on muliple items of that textbox, it is shown selected. May I know how can I do this?
If you want to select or highlight the entered text/content of a Text-Box control, then use the following method:
textBox.Select();
Please see if this helps.
Thanks.
Since I'm seeing the words select and item, I think maybe you are wanting to use a listview (set to detail view) instead of a textbox. It would allow you to have items on separate lines and be able to select them by clicking on them.
精彩评论