Murray Brown
asked on
VB.net Paint a Taskpane
Hi. I am trying to paint my TaskPane control. What is the best way to do this? In the code below I tried filling a Panel but how would I change the code to paint the actual TaskBar
Private Sub TaskPaneControl_Paint(send er As Object, e As System.Windows.Forms.Paint EventArgs) Handles Me.Paint
Dim graphics As Graphics = Panel1.CreateGraphics()
Dim rectBrush As New Rectangle(0, 0, 400, 200)
Dim brush As LinearGradientBrush
brush = New LinearGradientBrush(rectBr ush, Color.FromArgb(46, 100, 160), _
Color.White, LinearGradientMode.Horizon tal)
graphics.FillRectangle(bru sh, rectBrush)
graphics.Dispose()
End Sub
Private Sub TaskPaneControl_Paint(send
Dim graphics As Graphics = Panel1.CreateGraphics()
Dim rectBrush As New Rectangle(0, 0, 400, 200)
Dim brush As LinearGradientBrush
brush = New LinearGradientBrush(rectBr
Color.White, LinearGradientMode.Horizon
graphics.FillRectangle(bru
graphics.Dispose()
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER