How do I draw a circular gradient?
问题 How do I draw a circular gradient like this in vb.net? 回答1: Check out this great page. The code in the article is in C#. Here is a vb.net port of the code you'e interested in and updated for a rectangular fill: (based on the article's triangle fill sample.) Dim pgb As New PathGradientBrush(New Point() { _ New Point(0, 0), _ New Point(0, Me.ClientRectangle.Height), _ New Point(Me.ClientRectangle.Width, Me.ClientRectangle.Height), _ New Point(Me.ClientRectangle.Width, 0)}) pgb.SurroundColors =