473,765 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

28 New Member
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 1680
hexator
1 New Member
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
4168
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 import it, even with no change, I get a message saying the module name is illegal. If the form is named Form_NewParticipant, the export file gets named Form_NewParticipant.cls, and when I reimport it, the error message quotes the name...
2
1907
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 back to the form (that should give the effect that the form scrolled up); Thanks in advance.
3
2230
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 uses the Win32 API's CreateThread fn to create a thread that listens for requests. These requests then call into the mixed C++ code. This all works fine when the application lives in the same app domain.
1
913
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 advance, Roy
4
4463
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, to no avail. Ideas? Suggestions?
2
5221
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 a background color when building the program, rather than having the systems color settings influence them? Thanks for any help...
2
1310
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 varies, some fields may be left blank, however, I want to prevent an empty form from being submitted. I have written the code, but it's not working. I have changed it several times and now I'm just getting more and more confused. I'm new to...
1
1581
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
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7379
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5277
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.