Hey guys,

can somebody please convert the following code from VB 6.0 to VB.Net? Thanks

Picture1.Cls

Picture1.Line (-100, 0)-(100, 0), vbBlack
Picture1.Line (0, -100)-(0, 100), vbBlack

Picture1.DrawWidth = 1

sc = scriptcontrol1

Set oP = New Primitive
sc.AddObject "Src", oP, True

'------------Polynomials, trigonometric-------

For X = -10 To 10 Step 0.001
oP.X = X
Y = sc.Eval(text1.Text)
Picture1.PSet (X, Y), QBColor(2)
Next

My main concern is the Pset command in which im aware that is no longer available in .NET.

THanks guys