|
-
Apr 13th, 2012, 08:01 AM
#3
Thread Starter
New Member
Re: plot an analog signal waveform
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim x As Integer
Dim y As Integer
Dim blackPen As New Pen(Color.Black, 3)
Dim g As Graphics
g = PictureBox1.CreateGraphics
For r As Double = 0 To 400
y = cdbl(textbox1.text)
x = r
g.DrawLine(blackPen, CType(x, Single), CType(y, Single), CType(x, Single) + 1, CType(y, Single))
Next r
End Sub
i got an error says invalid conversion from string to double
how to do ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|