[英]Unwanted underscores appear in textbox in Windows CE application
I have created a windows CE application. 我已经创建了Windows CE应用程序。 It downloads some data and presents them on a windows form. 它下载一些数据并将其显示在Windows窗体上。
I have seen that sometimes ghostly underscore ( _
) is seen in textbox although there is no _
in data which is downloaded. 我已经看到有时在文本框中会出现下划线( _
),尽管下载的数据中没有_
。
I have already trimmed data also wrote code to remove _
from data if at all it is there. 我已经修剪过的数据还编写了代码,以删除_
(如果有的话)。 Still the _
is seen in text box. 仍然在文本框中看到_
。
Please help 请帮忙
I have created windows CE windows forms application with compact framework 3.5. 我创建了带有紧凑框架3.5的Windows CE Windows窗体应用程序。 When I set "&" static data in textbox value it shows me "_" When I set "&&" in textbox value it shows me "&". 当我在文本框值中设置“&”静态数据时,它会向我显示“ _”。当我在文本框值中设置“ &&”时,它将显示我“&”。
So this was the issue. 所以这就是问题所在。 So I replaced "&" with "&&" in the data which I receive before setting it to textbox. 因此,在将其设置为文本框之前,我将收到的数据中的“&”替换为“ &&”。
This has solved my issue. 这解决了我的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.