0
我在2008年VB這給了我一個錯誤的問題:「OverflowException異常是未處理」 在這段代碼:該錯誤是亮點Next b
VB.NET發生OverflowException了未處理
Dim gfx As Graphics
Dim a,r,g,b As byte
Dim left As Integer
Dim lStep As Integer = 1
For left = 0 To Me.ClientRectangle.Height Step lStep
For a = 1 To 255
For r = 1 To 255
For g = 1 To 255
For b = 1 To 255
gfx.DrawLine(New Pen(Color.FromArgb(a, r, g, b)), 0, left, Me.ClientRectangle.Width, left)
Next b
Next g
Next r
Next a