AntiAliased Form

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



Answer this question

AntiAliased Form

  • Zlatin

    I don't have borders in my form and if u mean to expand the size of the , this is useless for me coze its still the same problem

    I got answer of my problem in this link http://blogs.msdn.com/mswanson/archive/2005/07/07/436618.aspx

    but it gives me another problem that I cant but controls in this form , if any one can help in this problem ,he is welcome :)

    any way thx for your interest



  • amit9979

    You can try expanding the boundary of the shape to get a margin of some sort.

  • AntiAliased Form