How to prevent DataGridView from flickering when scrolling horizontally?

前端 未结 4 737
闹比i
闹比i 2020-11-28 14:03

I am using windows forms C#.

\"Screen

As shown in the screen shot, I have a Form which has a use

4条回答
  •  时光说笑
    2020-11-28 14:34

    In case anybody wanted to see this in Visual Basic.

    Public Class DBDataGridView
        Inherits DataGridView
    
        Public Sub New()
            MyBase.New()
            DoubleBuffered = True
        End Sub
    
    End Class
    

    This worked great.

提交回复
热议问题