Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 31-Dec-12 2:53am
v2
Comments
Zoltán Zörgő 28-Dec-12 13:28pm    
Haven't you unintentionally enabled localization? Is it the same after a whole system restart? Is it the same if you rebuild not just recompile? Is it the same, when you run it directly, not from within the IDE?
Prathap Gangireddy 28-Dec-12 13:46pm    
I didn't enable localization..I have rebuild the whole application..but its not working..Actually in the design I can see all the controls with text and its fine.But when I run the application..the forms which were developed a month ago also lost text.Also tried to run directly i.e. exe file but the same result.

Any other suggestions please.

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.
 
Share this answer
 
v2
Comments
Prathap Gangireddy 30-Dec-12 22:36pm    
I have checked all the possibilities..and everything looks fine.One point is...I am working on a particular form staring 4m last 20days..so why would all the earlier forms text is lost.
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.
 
Share this answer
 
Comments
Prathap Gangireddy 31-Dec-12 8:52am    
I am not setting the text dynamically...all the properties are set to default..I tried to delete few labels and added them again to the for..but still the result is same
M.Edmison 31-Dec-12 10:43am    
is this a large application that has several dll's referenced in it?
M.Edmison 31-Dec-12 11:33am    
I would have to say something changed somewhere but would have to really dig to see where. I would say something got changed somewhere that caused this so you could either look at previous verison if you have this application in a versioning setup (source safe, Team Foundation Server etc...) or try to reproduce it somewhere else which could be major or have another developer look at the code.

Wish I could be more specific but a lot could be effecting this and would take some time to hit every point.
Abhishek Pant 31-Dec-12 8:59am    
(for wolfcoder75) if you have any comment use comment widget. also for the solution 2 update that in solution 1 do not post your comments as a solution
M.Edmison 31-Dec-12 10:42am    
Sorry for the incorrect posting process, I'll comply going forward.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900