private void panel1_Paint(object sender, PaintEventArgs e) { float[] dashValues = { 2, 5, 2, 5 }; Pen blackPen = new Pen(Color.Black, 2); blackPen.DashPattern = dashValues; e.Graphics.DrawLine(blackPen, new Point(panel1.Width, panel1.Height), new Point(0, panel1.Height)); }
this is my problem, when i size this form very slowly the dashes become very close together and don't leave a gap like it is supposed to
private void panel1_Resize(object sender, EventArgs e) { panel1.Invalidate(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)