如何像单击按钮一样分别选择文本框的每一行
问题描述:
我需要像单击按钮一样分别选择文本框的每一行.假设每一行都有一个单词,我想对该单词分别进行一些操作.但是我没有.现在我该怎么办?
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..........