Print Page | Close Window

TabControlPage Turns Locked TextBoxes Transparent

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6285
Printed Date: 17 November 2024 at 3:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabControlPage Turns Locked TextBoxes Transparent
Posted By: GarethThom
Subject: TabControlPage Turns Locked TextBoxes Transparent
Date Posted: 31 January 2007 at 10:40am

We have started to use the new TabControlPage combined with your TabControl to provide a XP themed Tab control and it seems to work fairly well.

When we set TextBox.Locked = True we also set the BackColor = vbButtonFace so that the user can clearly see that it is locked, however, the TabControlPage seems to set the TextBox background to transparent.

It only seems to be when the BackColour translates to RGB(226, 226, 266) that it goes transparent, i.e. the same value that vbButtonFace translates into.

We are currently setting BackColor to 1 less than the RGB colour returned from OleTranslateColor, however, we would really appreciate a fix for this.  If it is a desired effect for some users then maybe a new property on the TabControlPage would solve the problem.

Thanks




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net