打字速度软件。 。 [英] typing speed software. .

查看:79
本文介绍了打字速度软件。 。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HIE。我开发了一个s / w I.e.打字速度测试仪。段落在一个textBox中的任何用户类型,字体设置为红色。我的问题是,一旦用户输入第一个文本框中的第一个单词,特定单词需要变为绿色。 ..

请告诉我怎么办?



我用c#语言来开发它。

hie. I developed one s/w I.e. typing speed tester. whatever user type the paragraph is in the one textBox and the font is set to the color red. my problem is that once user type the first word from the first textBox that particular word needs to become green. ..
plz tell me how can I do it?

I am using c# language to develop it.

推荐答案

你不能。

TextBox控件不是单个单词甚至行的格式 - 它是所有文本,或者什么都没有。

你必须通过接管整个绘图功能手动完成对于文本框,或(更简单)使用RichTextBox。
You can't.
TextBox controls do not an formatting for individual words, or even lines - it's all the text, or nothing.
You will have to do this manually, by taking over the whole paint function for the textbox, or (much simpler) use a RichTextBox instead.


这篇关于打字速度软件。 。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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