在富文本框中拖动单词 [英] drag words in a rich text box

查看:235
本文介绍了在富文本框中拖动单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!我正在尝试制作一个智能的文字处理工具.为此,我需要编写代码,
表单上有一个富文本框,用户可以输入文本,如果他想移动单词的位置,可以选择该单词并将其拖到富文本框中的另一个位置上,然后单击这个词放在那个位置.
如果可以的话,请给我一个代码!
谢谢!

Hi!I''m currently trying to make a smart word processing tool.For that I need a code to do this,
There is a rich text box on the form and the user can enter a text.If he want to move the position of a word he select the word and drag it onto an another position in the rich text box and when he click on it the word placed into that position.
Please give me a code if it possible to do!
Thank you!

推荐答案

将RichTextBox中的(EnableAutoDragDrop)属性仅更改为(True)

希望有帮助...
Just Change (EnableAutoDragDrop) Property in RichTextBox To (True)

hope this help...


这篇关于在富文本框中拖动单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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