Disappearing Text in Windows Vista - Henrik Skak Pedersen

22-Jun-07 09:35:02
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 very 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, and only if I use the "Windows Vista Basic" theme, rather than the

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.


This is actually a post from "The scripts"
(http://www.thescripts.com/forum/thread591155.html) but I am having the
exact same problem. Any ideas?

Best regards,
Henrik.
button
 
 

Disappearing Text in Windows Vista - v-lli

25-Jun-07 12:05:19
Hi Henrik,

I performed a test based on your description and did reproduce the problem
on my side.

I searched in our inner database and found a similar issue in it. It points
out that a workaround of this problem is to set the UseVisualStyleBackColor
property of the TabPage to false.

I have tested this workaround and confirmed it works.

Thank you for reporting this issue to us!

If you have any concerns, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
button
 

Disappearing Text in Windows Vista - Henrik Skak Pedersen

26-Jun-07 08:30:56
Hi Linda,

Thank you very much for your reply.

I can see that it actually is solving my problem, but my problem is now that
the tabpages don't have XP visual style which they need to have. So I
actually can't use it.

Is this a bug which Microsoft is planning on fixing. If yes what is the
timeframe?

Best regards
Henrik Skak Pedersen.
button
 

Disappearing Text in Windows Vista - v-lli

28-Jun-07 03:44:10
Hi Henrik,

Thank you for your response.

Alternatively, you could use RichTextBox in your application, which
doesn't have the problem.

As for fixing the problem of TextBox, Microsoft will evaluate it and
consider many aspects including fix cost, breaking changes, globalizatio,
performance, etc.

As soon as the problem is fixed, I will let you know.

Thank you for contributing to Windows Forms Whidbey!


Sincerely,
Linda Liu
Microsoft Online Community Support
button
 

Disappearing Text in Windows Vista - Henrik Skak Pedersen

28-Jun-07 04:32:35
Hi Linda,

Thank you very much. I am looking forward to hear about the fix :-)

Cheers,
Henrik.
button
 

Disappearing Text in Windows Vista - cran

03-Aug-07 04:20:02
I am having the same problem in my application. I am unable to use a
RichTextBox and I cannot set the UseVisualStyleBackColor to false. Is there
another workaround? The original poster mentioned calling Invalidate on
MouseEnter and MouseLeave. I haven't tried that yet, but I was hoping there
was a better solution.

Thanks,
-Erik Crank
button
 
Button with arrowdown (acting as a combobox)