问题
How to show our Winforms as MetroUI .. Without using 3rd party dll... I mean How to paint the borders of form
[Form1_______________-|[]|X] <- I Can able to change the color of this part
| |
| |<- I cant change the color of this part
-| |
||__________________________|
| |-> I cant change the color of this part
V
I cant change the color of this part
I dont this ..but it gives static color i want to change the color...so pls give me ideas in this
public Form1()
{
InitializeComponent();
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 0, 0));
}
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
private static extern IntPtr CreateRoundRectRgn
(
int nLeftRect, // x-coordinate of upper-left corner
int nTopRect, // y-coordinate of upper-left corner
int nRightRect, // x-coordinate of lower-right corner
int nBottomRect, // y-coordinate of lower-right corner
int nWidthEllipse, // height of ellipse
int nHeightEllipse // width of ellipse
);
来源:https://stackoverflow.com/questions/12384422/how-to-paint-borders-of-windows-form-in-c-sharp-winforms