79101197

Date: 2024-10-18 08:24:29
Score: 0.5
Natty:
Report link

You need to draw a square to the left of the text (square Panel element) 3 black borders 1 white on the right background - the background is white and this white border will overlap the left black line in the TextBox element

private void panel1_Paint(object sender, PaintEventArgs e)
{
Graphics g1 = e.Graphics;
Panel p = (Panel)sender;
g1.DrawLine(new Pen(Color.Black, 1), 0, 0, p.Width, 0);
g1.DrawLine(new Pen(Color.Black, 1), 0, 0, 0, p.Height);
g1.DrawLine(new Pen(Color.Black, 1), 0, p.Height-1, p.Width, p.Height-1);
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user27854404