J
JezB
Trying to draw a dashed line within a User Control I get error:
Changes cannot be made to Pen because permissions are not valid
Why is this ??
Pen dashed = Pens.DarkGray;
dashed.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
g.DrawLine(dashed, 0, 100, 200, 100);
Changes cannot be made to Pen because permissions are not valid
Why is this ??
Pen dashed = Pens.DarkGray;
dashed.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
g.DrawLine(dashed, 0, 100, 200, 100);