如何像单击按钮一样分别选择文本框的每一行 [英] How to select each line of a textbox separatly like click a button

查看:46
本文介绍了如何像单击按钮一样分别选择文本框的每一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要像单击按钮一样分别选择文本框的每一行.假设每一行都有一个单词,我想对该单词分别进行一些操作.但是我没有.现在我该怎么办?

I need to select each line of a textbox separately like click a button. Suppose, every line have a word, I want to do some operation of this word separately. But I don''t. Now what have I do?

推荐答案

您最好的选择是使用一个列表框,然后有一个要交互的​​单词列表.
Your best bet would be use a Listbox and then have a list of words to interact with.


好吧,如果您有多行文本框,请转到MouseClick事件并使用MouseEventArgs e,您可以获取X和Y值.

这是你想要的吗?希望对您有所帮助.

问候,费利佩.
Well, if you have a multiline textbox, go to MouseClick event and use the MouseEventArgs e, you can get the X and Y value.

Is this what you want? Hope it helps.

Regards, Felipe.


更好地使用列表框..........
better you go for listboxes..........


这篇关于如何像单击按钮一样分别选择文本框的每一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆