473,387 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Setting form backcolor in code leaves part of tabcontrol at default colour

28
In vs2012 I have a form with a tabControl on it.

If I set the form backcolor to some colour in the form designer the tabcontrol area to the right of the tabs takes for the form's backcolor, as expected.

However, If I set the form's backcolor to a colour in code (e.g. in the Load Event) that area of the tabcontrol remains at the default colour, and looks a bit silly as a greyish bar. As the tabcontrol doesn't have a backcolor property (as opposed to the tabpages) I'm reached the end of my attempts to overcome the problem.

Has anyone else experienced this and found a solution, please?
Sep 19 '12 #1
1 1674
I have the same problem in VB6 (yeah i know..wtf but our company has a CRM that is still in VB6. Small changes like this we still do.) would be great if there was a fix or workaround.
Nov 20 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: enrio | last post by:
I need to process the source code associated with the forms outside access, and import the changes back to Access. I find that I can export the source code of a form, but when I subsequently...
2
by: M. Said | last post by:
Hi, I am trying to write a function that will scroll the "image" content of a form upwards. My Questions: 1) How do I make a bitmap of the Form image. 2) How do I copy a "region" of that bitmap...
3
by: Paul Kenny | last post by:
Hi, I have developed an application that uses mixed C++ to integrate managed ..NET applications with an unmanaged C++ application whose behaviour I cannot change. The unmanaged C++ application...
1
by: Roy | last post by:
Hi all, There is an independent form that is not part of mdi. I need to close this form within mdiparent. How do I need to check for the existence of this form, so I can close it? Thanks in...
4
by: MLH | last post by:
Setting form's Picture property to another file from within VBA doesn't repaint the form with new bitmap - for instance... Me.Picture = "c:\pics\MyNewPic.jpg" I tried Me.Repaint afterward,...
2
by: kerry | last post by:
When running my programs the forms of the program change background color as I change the computers (XP) color selection - is there a simple way to have the form colors stay at what I determined as...
2
by: Jaye | last post by:
Hi. I'm having some trouble with the code I'm using to validate a form. The form is used to query a database and users can enter multiple search criteria separated by commas. Since search criteria...
1
by: mahesh4all | last post by:
Dear sir i want to submit a form when user leaves mozila browser. My Code is as follows test1.jsp <script language="javascript"> function submitthis() {
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.