473,320 Members | 1,946 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,320 software developers and data experts.

change color of a control's border

I have to change the color of the border in a Control whose BorderStyle is
"Fixed3D" (for example Label).
I could change the color of a Label only if its BorderStyle was set to
"None" but I havent't found a way so far that allows me to set the color for
a control with BorderStyle "Fixed3D".

Actually I need this functionality to change the Border-Color for the tabs
in an TabControl.

does anybody has an idea how I could do this? I also appreciate some
sample-code.

Nov 16 '05 #1
1 9597
Paiam,

I don't believe that the tab control offers this kind of functionality.
If you want to do this, then you will have to custom paint those elements of
the tab control.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Paiam Salavati" <pa************@skillworks.de> wrote in message
news:2i************@uni-berlin.de...
I have to change the color of the border in a Control whose BorderStyle is
"Fixed3D" (for example Label).
I could change the color of a Label only if its BorderStyle was set to
"None" but I havent't found a way so far that allows me to set the color for a control with BorderStyle "Fixed3D".

Actually I need this functionality to change the Border-Color for the tabs
in an TabControl.

does anybody has an idea how I could do this? I also appreciate some
sample-code.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Cezary | last post by:
Hello. I have this code below and want to change background, but this works only in IE5.x. Why ? <div onmouseover="this.className='change'" onmouseout="this.className=''"...
4
by: Paiam Salavati | last post by:
I have to change the color of the border in a Control whose BorderStyle is "Fixed3D" (for example Label). I could change the color of a Label only if its BorderStyle was set to "None" but I...
1
by: Leo | last post by:
I created a user control which is some text contained in a HtmlTable. I put this control into main form. I would like to have the ability to move this control around in the main form. I think one...
10
by: tshad | last post by:
I have a problem setting the background color of textbox on the fly. I tried using: applicantID.backcolor = "F6F6F6" and applicantID.backcolor = "#F6F6F6"
4
by: Dick | last post by:
The GridLines property is set to Both and, in any case, I can see them if I make the background anything other than white. But I really want the backgroud white! Will I have to be content with not...
1
by: Patrick | last post by:
Hello, I want to change the border of an asp-dropdownlist via C#. With ddl.CssClass = "empty"; I want to change the border of the DDL to red, but it works only in Firefox not in Internet...
0
by: aarongoodman | last post by:
Does anyone know how to change the color and width of a control's border when specifying BorderStyle.FixedSingle etc... Is there an EASY way to change the Brush color or alter the Pen width from...
3
by: =?Utf-8?B?Q2xhZXNXZWRpbg==?= | last post by:
I want my application to have a special color on the Window forms borders. Not the standard one (which the user has set up in his desktop-properties)... How can I do this? I can change...
6
by: AAaron123 | last post by:
I'm using the CreateUserWizard Web Server Control The error message when the passwords do not match is colored red. Red does not show well against my background so I like to change that color. I...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.