如何在RichTextBox控件中给文本加下划线?

编程入门 行业动态 更新时间:2024-10-12 05:54:07
本文介绍了如何在RichTextBox控件中给文本加下划线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好.现在,我正在制作一个用于测量打字速度的程序.我在表单上放置了一个RichTextBox控件,一个TextBox控件和一个按钮控件.当用户按下按钮时,速度测试开始.在这里,用户必须在文本框中输入相同的字符,并加载到RichTextBox控件中.我需要的是,一开始,RichTextBox的第一个字符下面必须有下划线,以便用户可以看到它,然后他在文本"框中输入该字符.然后,RichTextBox的第二个字符下方应有下划线,以便用户在文本框中输入相同的字符,依此类推.这个怎么做?请帮帮我.

Hi to all. Right now, I am making a Program which measures Typing speed. I have placed one RichTextBox control, one TextBox Control and one button control on the form.when user presses the button, speed Test starts.Here, User has to enter same characters in the text box, which are loaded in RichTextBox control. what I need is, at beginning, There must be underline below first character of RichTextBox, so that user can see it, and then he enters that character in Text box. Then there should be underline below second character of RichTextBox, so user enters same character in text box and so on. how to do this? please, help me.

推荐答案

看看 msdn.microsoft/zh-CN/library/ee681613%28v=vs.95%29.aspx#formatting_text_at_run_time [ ^ ].

更多推荐

如何在RichTextBox控件中给文本加下划线?

本文发布于:2023-07-18 12:47:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1144906.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:下划线   控件   文本   如何在   RichTextBox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!