如何在C#的TextBox中放置突出显示的字母? [英] How to put the highlight letter in TextBox in C#?

查看:82
本文介绍了如何在C#的TextBox中放置突出显示的字母?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我正在使用Visual Stadio 2010,我想将高亮显示的字母放在TextBox中.单击它时,那些字母将被省略,我们可以输入文本.

我该怎么办?

非常感谢

Dear all,

I am using Visual Stadio 2010, I want to put the highlight letter in TextBox. When click on it, those letter will omit and we can enter the text.

How can I do it?

Thank you so much

推荐答案

请参阅我的评论-这个问题尚未完全解决.另外,突出显示"是什么意思?如果这仅仅是选择(从剪贴板使用的意义上来说),并且如果这是桌面应用程序(WPF,Forms),则可以通过将值分配给两个属性(SelectionStartSelectionLength)来完成.太多的假设,错误的假设? - 不是我的错;准确地表达您的问题.

—SA
Please see my comment — the question is not fully formulated. Also, what do you mean by "highlight"? If this is just selection (in the sense used by the clipboard) and if this is a desktop application (WPF, Forms), this is done by assigning the values to two properties: SelectionStart and SelectionLength. Too many assumptions, wrong assumption? — not my fault; formulate your questions accurately.

—SA


这篇关于如何在C#的TextBox中放置突出显示的字母?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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