A way to remove selected LineShape shadow effect?
Posted
by serhio
on Stack Overflow
See other posts from Stack Overflow
or by serhio
Published on 2010-03-23T21:03:56Z
Indexed on
2010/03/23
23:43 UTC
Read the original article
Hit count: 431
Is there a way to remove the LineShape shadow effect when selecting the lineShape?
I tried
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
Dim g As Graphics = e.Graphics
g.SmoothingMode = SmoothingMode.AntiAlias
Dim oldmode As SmoothingMode = g.SmoothingMode
g.DrawLine(_Pen, X1, Y1, X2, Y2)
g.SmoothingMode = oldmode
End Sub
but finally, this have some back effects on invalidation: when moving (in a panel) the line leave traces - does not invalidate properly.
© Stack Overflow or respective owner