Boni, this should get you started.
Dim zoom As Integer = 1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
zoom += 1
PictureBox1.Invalidate()
End Sub
Private Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As
System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
Dim rect As New Rectangle(10, 10, 50 * zoom, 50 * zoom)
e.Graphics.DrawRectangle(Pens.Blue, rect)
End Sub
"Boni" <oilia@nospam> wrote in message
news:uG**************@tk2msftngp13.phx.gbl...
Dear all,
I need a picturebox on which I can with GDI+ draw rectangles. The scroll
and zoom should be supported. Do I have to manually resize rectangles,when
zoom button clicked and change position when scroll done and redraw with
new coordinates? Is there some standard procedure for that? Any link or
advice is greatly appreciated.
Thanks,
Boni