开发者

How to select textbox values in windows form

开发者 https://www.devze.com 2023-01-30 06:19 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消