G
Guest
Hi All
i had made a borderless and shaped window using this code
public Form1()
{
this.FormBorderStyle=FormBorderStyle.None;
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.SmoothingMode=SmoothingMode.AntiAlias;
GraphicsPath GP=new GraphicsPath();
//Codeing to get any shape
this.Region=new Region(GP);
}
it works but i got a problem there is some pixilation on the borders which
looks very bad
is there any way to make AntiAliasing between the Form and the screen?
thx all
i had made a borderless and shaped window using this code
public Form1()
{
this.FormBorderStyle=FormBorderStyle.None;
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.SmoothingMode=SmoothingMode.AntiAlias;
GraphicsPath GP=new GraphicsPath();
//Codeing to get any shape
this.Region=new Region(GP);
}
it works but i got a problem there is some pixilation on the borders which
looks very bad
is there any way to make AntiAliasing between the Form and the screen?
thx all