Rounded edges disgusting graphics. What to do to make the quality better

GraphicsPath gPath = new GraphicsPath(); gPath.AddArc(0, 0, textBox1.Height, textBox1.Height, 180, 90); gPath.AddArc(0 + textBox1.Width - textBox1.Height, 0, textBox1.Height, textBox1.Height, 270, 90); gPath.AddArc(0 + textBox1.Width - textBox1.Height, 0 + textBox1.Height - textBox1.Height, textBox1.Height, textBox1.Height, 0, 90); gPath.AddArc(0, 0 + textBox1.Height - textBox1.Height, textBox1.Height, textBox1.Height, 90, 90); gPath.CloseFigure(); textBox1.Region = new Region(gPath); gPath.Dispose(); 
  • one
    Use WPF =) - kxko
  • Thanks, great advice. The question is how to do it in WinForms - Alexander Puzanov
  • Unable to make region smoothing. Try a workaround, as done here . - Alexander Petrov

0