C#Windows应用程序不正确显示字符串 [英] C# windows application showing string incorrectly

查看:86
本文介绍了C#Windows应用程序不正确显示字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows窗体触摸屏应用程序,该应用程序最初是在Windows XP下开发的.作为应用程序的一部分,有一些自定义消息框会不断显示给用户.与MessageBox.Show(一些字符串)基本相同的概念,但是触摸屏/视觉效果更好.问题是在Windows 7下,如果结尾处有标点符号,它将在乞求处显示.例如

SingleMessage(您准备好退出了吗?");

在XP下,messaqe将完全按输入显示.在Win 7下,该消息将显示为?您准备好退出了吗?".感叹号也会遇到相同的问题.

我一直在寻找答案,但未能找到原因.
该应用程序是使用.net 2.0和VS2005开发的.

谢谢,

I have a windows forms touchscreen application that was developed initially under Windows XP. As part of the application, there are custom message boxes that are continually displayed to the user. Basically the same concept as the MessageBox.Show(some string), but in a better touchscreen/visually pleasing manner. The problem, is under Windows 7, if there''s punctuation at the end it will be shown at the begging. e.g.

SingleMessage("Are you Ready to Close Out?");

Under XP, the messaqe will show exactly as entered. Under Win 7, the message will show as "?Are you Ready to Close Out". The same issue will be encountered for exclamation points.

I''ve searched around for an answer but have not been able to find the cause.

The application was developed using .net 2.0 & VS2005.

Thanks,

推荐答案

答案是:由于您犯了一个错误,文本无法正确显示.

根据此问题中提供的信息,这是最终答案.

—SA
The answer is: the text is not displayed correctly because you made a bug.

Based on the information provided in this quesion question, this is a final answer.

—SA


这篇关于C#Windows应用程序不正确显示字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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