H, I began programming in visual basic few weeks ago and I am really getting along fast. I however want to plot two sets of values XY on a graph with logarithmic scale.I have created the arrays that stores the number as it is being inputed by the user using the inputbox. I have however not been able to scale the picturebox and also plot my desired graph. Anyhelp.... thanks
Code:
Dim dataPoints As Integer
Dim X(50) As Single
Dim Y(50) As Single
'To ensure that data entered do not exceed 50
dataPoints = Integer.Parse(TextBox1.Text)
If dataPoints > 50 Then
MessageBox.Show("The data points chosen are too much for a typical well", "Excess data", MessageBoxButtons.OK, MessageBoxIcon.Error)
'To enter the x values
Try
Dim k As Integer
For k = 1 To dataPoints
formFact(k) = InputBox(k)
Next
Catch ex As Exception
MessageBox.Show("Enter only digits", "Invalid Input", MessageBoxButtons.OK, MessageBoxIcon.Warning)
End Try
'To enter Y values
Try
Dim k As Integer
For k = 1 To dataPoints
formFact(k) = InputBox(k)
Next
Catch ex As Exception
MessageBox.Show("Enter only digits", "Invalid Input", MessageBoxButtons.OK, MessageBoxIcon.Warning)
End Try