| |

VerySource

 Forgot password?
 Register
Search
View: 601|Reply: 5

On the background color of the label control of winform

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-27 10:20:01
| Show all posts |Read mode
Because my background is a bitmap, after the label above, it also has a rectangular background color, which is hard to see. What should I do? Can't I make the background color transparent? I just want to use it to display text. There is also tabcontrol, which is the same. The horizontal bar of the tab above it will also have a default gray background. How to deal with it?
Reply

Use magic Report

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-2-20 23:45:02
| Show all posts
You can set the color you need in their BACKCOLOR property
Reply

Use magic Report

1

Threads

31

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-2-21 10:30:02
| Show all posts
You can set the background color of the control to System.Drawing.Color.Transparent to show the background color of the parent control.
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-2-21 22:30:01
| Show all posts
Thank you, huh, label is fine, this friend, what about the gray background of tabcontrol? Is the horizontal bar of the tab label, because the tab label is not full, so the follow-up is a gray background. Unfortunately, tabcontrol does not have a backcolor property.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-23 10:30:01
| Show all posts
The tabcontrol needs to be redrawn by itself.
Reply

Use magic Report

1

Threads

31

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-3-1 14:30:01
| Show all posts
It is true that the tab of TabControl is to be redrawn, the default is not working.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list