开发者

A way to remove selected LineShape shadow effect?

Is there a way to remove the LineShape shadow effect when selecting the lineShape?

alt text http://lh4.ggpht.com/_1TPOP7DzY1E/S6kq2KQ-zdI/AAAAAAAADIg/tUy74j-EpQc/s800/capture4.png

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, X开发者_JS百科1, 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.


Change the SelectionColor to Transparent.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜