I have a TaskPane in my Excel VB.net Add-in that uses the Paint event
behind a TabPage Control to achieve a gradient finish. I am having problems with the TreeView freezing at times and I also have to use my scroll buttons instead of the mouse.
Does painting the Taskbar usually cause these problems. I think that the TabPage might be the main cuplprit
My code is below.
Private Sub TabPage3_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.Paint
Dim graphics As Graphics = e.Graphics()
Dim rectBrush As New System.Drawing.Rectangle(0
, 0, 450, 600)
Dim brush As LinearGradientBrush
brush = New LinearGradientBrush(rectBr
ush, Color.FromArgb(46, 100, 160), _
Catch ex As Exception