Windows 7中的Richtextbox显示问题 [英] Richtextbox display problem in Windows 7

查看:73
本文介绍了Windows 7中的Richtextbox显示问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在我们的C#应用​​程序中,我们必须动态创建2000多个RichTextBox,并应在带有两个列的七个标签中显示它们,我们需要填充excel工作表中的数据.然后按列. (它是以前的设计,因此我们仅以这种方式进行)

该应用程序在Windows XP上运行正常.当我们在Windows 7中运行相同的应用程序时,在第七个标签中,最后几行显示不正确.它们与以前的文本框重叠. 并非所有文本框都显示.此外,最后显示的最后一个文本框(实际上不是最后显示)带有比预期的垂直间距更大的文本框.调试代码后,文本框的Y位置值可以正常显示,但不会在形式中反映出来.

在此先感谢.

Hi All,

In our C# application, we have to create more than 2000 richtextboxes dynamically and we should display them in seven tabs with two columns and we need to fill the data from an excel sheet.we are creating them tabwise and then columnwise. (Its the previous design, so we are proceeding in this way only)

The application is working fine with Windows XP. when we run the same application in Windows 7, In the Seventh tab some last rows are not displaying properly. They are overlapping with the previous textboxes. Not all the textboxes are displaying. Also, the last text box(which is not actually last to display), which is last displayed is coming with more than expected vertical gap. when the code is debugged, the Y location value for the textboxes is coming fine but the same is not reflecting in the form .

Thanks in Advance.

推荐答案

我认为Windows 7/Vista中的某些控件比Windows XP中的控件大(例如日历),因此也许您需要检查系统信息以了解Windows版本,并更改​​控件布局间距代码或适当地隔开控件的任何内容.
I think some controls are larger in Windows 7/Vista than in Windows XP(like the calendar) so maybe you need to check system information for the Windows version and change the control layout spacing code or whatever to space the controls properly.


这篇关于Windows 7中的Richtextbox显示问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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