所有控件都不会突然显示文本 [英] All of a sudden Text is not displayed for all the controls

查看:54
本文介绍了所有控件都不会突然显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



紧急我的应用程序问题。我正在开发一个Windows应用程序。突然间我运行应用程序文本没有显示为eg.Radio按钮的控件显示但文本没有显示。所有的功能工作正常但我不知道wat发生所有文本丢失和Datagrids只显示几个记录,但是当我调试它有所有的记录。



你能帮帮我..知道这种行为的原因。
谢谢。



--Prathap

解决方案

在这里查看几件事:



检查属性以确保文本是预期的颜色,启用是真,可见是真的,并确保您没有对该文本进行任何动态更改,可能会将文本重置为什么都不显示。



另外,检查以确保没有任何显示或弹出的东西e控件,可以将文本设置为背景,另一个控件位于顶部。



有些东西使得文本以某种方式消失,而不是它的颜色,可见,分层,或其他选项可能是不透明度也可以改变。



最后一分钟的想法可以检查应用程序属性,以确保你不要在运行期间有任何调整它,此外该字体可供该OS /用户使用。



希望这有帮助。


< blockquote>所以你的文本颜色设置为黑色或默认,你没有动态调整(即虽然应用程序打开了)而是设置在表单属性本身上?



如果你试图在表单中动态更改文本并在点击之前设置一个断点line,该文本显示该属性的内容是什么?



您是否正在重置该项目的值,以便在应用程序的任何部分清除它?



我能想到的其他选项是确保文本设置为与背景颜色不同的颜色。



在运行时以调试模式检查你的属性,看看你是否能看到任何看起来不适合该表格的东西。


Hi All,

Urgent issue with my application.I was working on a Windows application.All of a sudden when i run the application the text is not displayed for the controls for eg.Radio button is shown but text is not displayed.All the functionality is working fine but I don''t know wat happened all text is lost and Datagrids show only few records but when i debug it has all the records.

Can you please help me..wats the reason for this behaviour.
Thank you.

--Prathap

解决方案

Several things to check here:

Check the properties to make sure text is the intended color, enabled is true, visible is true, and make sure you don''t have any dynamic changes occuring for that text that could be reseting the text to show nothing.

Also, check to make sure you don''t have anything showing or poping up over the control that could be setting that text to the background with the other control on top.

Something is making that text go away in some fashion rather it could bhe the color, visible, layered, or another option could be opacity could be changed as well.

Last minute thought could be check the application properties to make sure you don''t have anything adjusting it during run time, in addition that the font is available for that OS/User.

Hope this helps.


so your colors for that text is set to black or default, and you aren''t adjusting dynamically (i.e. while the application open) but rather set on the form properties itself?

If you try to change the text dynamically in the form and set a break point before you hit that line, what does the text show for that property?

Are you reseting the value of that item so it get cleared in any part of the application?

The other options I can think of is to make sure the text is set to a color that is not the same as the background.

Check your proprties during run time in debug mode and see if you can see anything that doesn''t look right for that form.


这篇关于所有控件都不会突然显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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