JWTK


I have encountered a bug that I can reproduce in a simple test application that is constructed entirely in the designer within Visual Studio 2005, with not one line of code written by me. Briefly, all the text in a TextBox disappears whenever the mouse cursor enters or leaves the box. I've only seen it under a special set of conditions, summarized below. Has anyone else seen this

======

Details:

My test machine has insufficient graphics to run the fancy graphics features of Aero. The problem only occurs if I use the "Windows Vista Basic" theme, rather than the "Windows Classic" or "Windows Standard".

All that is required is a TextBox with at least one ScrollBar, inside a SplitContainer on a TabPage. If any of these elements is missing, it works fine. A work-around is to call TextBox.Invalidate() on MouseEnter and MouseLeave, but this solution is not entirely satisfactory.

I would appreciate any help you can give me.



Re: Disappearing Text in Windows Vista

UI Freak


This also happens for my app which has no tab control, or splitter control. Just a simple about box form, with the textbox carrying the description of the app.

I move the mouse over the control, and the text disappears. If I click the control, it is shown again.

I wonder how many subtle bugs like this, Vista will bring to us.





Re: Disappearing Text in Windows Vista

JWTK

UI Freak,

Did your problem occur, like mine, on a system with limited graphics

JWTK






Re: Disappearing Text in Windows Vista

UI Freak

My problem was about using the table panel control with transparency to host the text box. Once I moved the textbox out of the table panel container, the problem disappeared. Maybe setting transparency to off would work too.



Re: Disappearing Text in Windows Vista

Shapid

I had run into the same issue. The problem appears to be caused when the BackColor of the panel the text box is contained within is set to a Color value of "Transparent".

I also saw an instance where the problem was occurring when the value of Color for the panel was not being set. The default value in this situation showed in the properties window as a color value of "Control". However, during run-time the panel behaved as though it was really defaulting to a value of "Transparent".

In summary, it appears that if you explicitly set your containing panel to a BackColor to a value other than "Transparent" the problem should go away.


Hope this helps someone else out since I didn't find anything else on the web except this thread on the subject!





Re: Disappearing Text in Windows Vista

JWTK

Shapid,

Thankyou so much. This fixed my problem. Everywhere that I had a TextBox within a SplitContainer, I simply set the BackColor of the SplitterPanel to a non-transparent color. This fixed my problem! This seems like a serious Vista bug. Microsoft should fix this.

I don't know how you figured this out, but your solution is a god-send for me.

Regards,

JWTK





Re: Disappearing Text in Windows Vista

QualyLee

I fall across the same question .

I use the c#2.0 vs2005(EN).






Re: Disappearing Text in Windows Vista

pdupre

I have the same problem, and when I run my app in xp, the control appear just fine. I was usin a textbox over a groupbox that was transparent, the thing is that I wanted it to be transparent, the only work around that I found was to place a panel with the same size as my textbox behind thge textbox with a backcolor other than transparent and that fixed it... although I wish there was a more effcient solution aorund Sad





databaseforum