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();