how to display all lines if i will scroll the picturebox. hi,
ok i m sending the code.
*************** *************** *************** *********
Private Sub PictureBox1_Pai nt(ByVal sender As Object, ByVal e As System.Windows. Forms.PaintEven tArgs) Handles PictureBox1.Pai nt
eGraphics = e.Graphics
TryToCreateRec( eGraphics)
PictureBox1.Ref resh()
End Sub
Public Sub TryToCreateRec( ByVal eGraphics As Graphics)
Dim blackPen As New Pen(Color.White , 3)
eGraphics.DrawL ine(blackPen, xco, 0, xco, 1000)
myco = 50 * 2 + 30 + myco
eGraphics.DrawL ine(blackPen, 0, yco, 1023, yco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawL ine(blackPen, 0, myco, 1023, myco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawL ine(blackPen, 0, myco, 1023, myco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawL ine(blackPen, 0, myco, 1023, myco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawL ine(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.
ok i m sending the code.
*************** *************** *************** *********
Private Sub PictureBox1_Pai nt(ByVal sender As Object, ByVal e As System.Windows. Forms.PaintEven tArgs) Handles PictureBox1.Pai nt
eGraphics = e.Graphics
TryToCreateRec( eGraphics)
PictureBox1.Ref resh()
End Sub
Public Sub TryToCreateRec( ByVal eGraphics As Graphics)
Dim blackPen As New Pen(Color.White , 3)
eGraphics.DrawL ine(blackPen, xco, 0, xco, 1000)
myco = 50 * 2 + 30 + myco
eGraphics.DrawL ine(blackPen, 0, yco, 1023, yco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawL ine(blackPen, 0, myco, 1023, myco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawL ine(blackPen, 0, myco, 1023, myco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawL ine(blackPen, 0, myco, 1023, myco)
myco = 50 * 2 + 30 + myco
eGraphics.DrawL ine(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.