设置 AutoScrollMinSize 的值后,滚动条出现了,但是只要移动滚动条,画面都变得很乱. 如果加入下列代码 Private Sub grid_Scroll(ByVal sender As Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles Me.Scroll Me.Refresh() End Sub 这样可以,但是有闪烁! 怎样可以在移动滚动条时,让控件不再自动重绘,由我来指定何时绘制? 或者还有其它更好的办法呢?
Paint中处理AutoScrollPosition
如果加入下列代码
Private Sub grid_Scroll(ByVal sender As Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles Me.Scroll
Me.Refresh()
End Sub
这样可以,但是有闪烁!
怎样可以在移动滚动条时,让控件不再自动重绘,由我来指定何时绘制?
或者还有其它更好的办法呢?