Hi ~ I used Infragistics v11.2.
When I did the round shape Label on a background color processing, the edge was white.
Do you have a way to get rid of the white part?
Label Style is Rounded1.
It's tough to say what's happening there without a lot more information. I can't guess where that white color is coming from. Can you post a small sample project demonstrating this issue so we can check it out?
This is a sample code.
First is Label on the Label.
Second is Label on the Panel.
I want delete edge white color.
Hi,
This is caused by the way transparency is implemented by the Dotnet Framework.
The panel is a container and so when the top label paints itself, it asks it's container to paint first and so it works okay.
The second label does not work, because although you have placed one label on top of another, the label is not a container, so transparency will not work in this case.
The corners of the label are not white, they are picking up the color of their container, which in this case is the form. Since it's such a light gray against a dark background, it looks white, but if you take a screen shot and zoom in and compare the actual colors, you can see it's the same color as the form.
I don't see any way around this. You need to contain the label inside another control and the corners will then pick up the background of that control. In general, it's a bad idea to overlap controls in DotNet Windows Forms because of how they implement transparency.
OK. Thank you for your answer.