Windows Develop Bookmark and Share   
 index > Windows Forms General > TextBox background color issue on transparent GroupBox
 

TextBox background color issue on transparent GroupBox

When you put a multiline textbox on a GroupBox whose BackColor is set to Transparent, the textbox will change color when you mouse over it. When you give focus to another control, the original BackColor is restored. If you change the GroupBox to have a non-transparent BackColor, this issue does not exist.

Any ideas why this happens?

Thanks!
JoshMcCullough  Thursday, May 01, 2008 8:53 PM

Hi JoshMcCullough,

I can reproduce the problem with your code, and I have to admit that the behavior is less desirable. To feedback this issue in a formal way, could you please go to our Connect portal site and submit it?

In your feedback, you can quote the URL to this thread, so that the whole conversation can be available. Every feedback submitted will be evaluated carefully by our engineers. They will let you know their comments further through that portal. It would be great if you can also paste the link to the submitted feedback here, so that other community members can see it as well.

Thanks.
Rong-Chun Zhang

Rong-Chun Zhang  Wednesday, May 07, 2008 7:59 AM

I somehow neglected to mention that this is only an issue in Vista. Thanks.

JoshMcCullough  Sunday, May 04, 2008 3:33 PM

Hi JoshMcCullough,

Sorry, I cannot reproduce the problem with Visual Studio 2008 (both .Net Framework 3.5 and 2.0) on Vista Ultimate edition. Could you please provide detailed steps to reproduce this problem? Thanks.

Best regards.
Rong-Chun Zhang

Rong-Chun Zhang  Monday, May 05, 2008 6:45 AM

Here is a sample project (vs2005):

http://www.jsment.com/Misc/Broken%20Multiline%20TextBox.zip

Run it and hopefully you will see the problem! Thanks.

JoshMcCullough  Monday, May 05, 2008 2:08 PM

Hi JoshMcCullough,

I can reproduce the problem with your code, and I have to admit that the behavior is less desirable. To feedback this issue in a formal way, could you please go to our Connect portal site and submit it?

In your feedback, you can quote the URL to this thread, so that the whole conversation can be available. Every feedback submitted will be evaluated carefully by our engineers. They will let you know their comments further through that portal. It would be great if you can also paste the link to the submitted feedback here, so that other community members can see it as well.

Thanks.
Rong-Chun Zhang

Rong-Chun Zhang  Wednesday, May 07, 2008 7:59 AM
JoshMcCullough  Wednesday, May 07, 2008 2:17 PM

You can use google to search for other answers

Custom Search

More Threads

• Problem with access database in vb.net
• Maximum width of a panel
• clr errors
• Windows 7 RC
• MDIChild hide/show + ComboBox refresh
• capturing click event of a button in usercontrol
• Calling a function by string or through an array?
• Deployment C# application with FarPoint spread in the .net
• Getting the machine name
• "LoaderLock was detected" when executing all .NET forms stuff...