how to display all lines if i will scroll the picturebox. hi,
ok i m sending the code.
************************************************** ****
Private Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
eGraphics = e.Graphics
TryToCreateRec(eGraphics)
PictureBox1.Refresh()
End Sub
Public Sub TryToCreateRec(ByVal eGraphics As Graphics)
Dim blackPen As New Pen(Color.White, 3)
eGraphics.DrawLine(blackPen, xco, 0, xco, 1000)
myco = 50 * 2 + 30 + myco
eGraphics.DrawLine(blackPen, 0, yco, 1023, yco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawLine(blackPen, 0, myco, 1023, myco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawLine(blackPen, 0, myco, 1023, myco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawLine(blackPen, 0, myco, 1023, myco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawLine(blackPen, 0, myco, 1023, myco)
End Sub
************************************************** ******
As per the code,it will draw horizentally 6 line in picturebox.
when i m running ,it is displaying 6 lines.but when i m scrolling the picturebox in that time only one line is visible(that one is the 1st line).
can u help me ,how to display all lines if i will scroll the picturebox.