.NET Framework - Disappearing Text in Windows Vista

Asked By Henrik Skak Pedersen
22-Jun-07 09:35 AM
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.
Visual Studio 2005
(1)
Windows Vista
(1)
RichTextBox
(1)
UseVisualStyleBackColor
(1)
TextBox.Invalidate
(1)
ScrollBar
(1)
TextBox
(1)
XP
(1)
  v-lli replied...
25-Jun-07 12:05 AM
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.
  Henrik Skak Pedersen replied...
26-Jun-07 08:30 AM
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.
  v-lli replied...
28-Jun-07 03:44 AM
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
  Henrik Skak Pedersen replied...
28-Jun-07 04:32 PM
Hi Linda,

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

Cheers,
Henrik.
  cran replied...
03-Aug-07 04:20 PM
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
  Rune Brahe Bjerregaard replied...
17-Jan-09 04:35 PM
Did anybody solve this problem? We're getting this in a Windows Forms application when it is running on Vista.

Thank you


Rune Brahe Bjerregaard
Vestas Wind Systems A/S
Create New Account
help
Visual Studio 2005 and Visual Studio 2008 on same system? .NET Framework Can Visual Studio 2005 be installed and used on the same system as Visual Studio 2008 ? and for bonus
Visual Studio 2005 & 2003 .NET Framework Is there a way to work on visual studio 2003 projects using visual studio 2005 without converting to 2005 and maintaining original code of 2003? Thanks AM Visual Studio Development
Visual Studio 6.0 macros in Visual Studio 2005 IDE? .NET Framework Can Visual Studio 6.0 macros be used in the Visual Studio 2005 IDE, or do they all have to be re-coded? Visual Studio Extensibility
visual studio 2005 dev and sql 2005 dev .NET Framework I have the 2 cd's for SQL Server 2005 Development. Where do I find the Visual Studio 2005 Developer install? Thanks. Visual Studio General Discussions SQL Server 2005 (1) Visual Studio 2005 (1
Visual Studio 2005 Team edition for Software Developers and Web Site .NET Framework Hello, I have run a same problem couple of times. Visual Studio 2005 is installed from Visual Studio 2005 Team edition for Software Developers dvds and after installation Creating Web Site is missing