T
Thiru .Net
hi wagner,
i have a doubt in panel control in windows application.
i have a panel control wherein i have put a picturebox control.
i show picture into picturbox control.
now i need to zoom in and zoom out the picture in the picturebox
control.
the picturebox control is within panel(autoscroll is enabled true)
scroll bars are enabled.
PictureBox1.Width = PictureBox1.Width + 25
PictureBox1.Height = PictureBox1.Height + 25
the problem is the picture goes only to right side when it gets its size
enlarged.
then i used left and top properties
PictureBox1.Width = PictureBox1.Width + 25
PictureBox1.Height = PictureBox1.Height + 25
PictureBox1.Left = PictureBox1.Left - 20
PictureBox1.Top = PictureBox1.Top - 5
the above code streched the picture both left and right side...but the
problem is i can scroll right side and see the picture but i could not
scroll left side to see picture streched on the left side.
i need to strech and zoom in and out both sides and should be viewed
thru scrollbars both sides using panel.
thanks in advance,
regards,
Thiru.
Regards,
Thiru.S
i have a doubt in panel control in windows application.
i have a panel control wherein i have put a picturebox control.
i show picture into picturbox control.
now i need to zoom in and zoom out the picture in the picturebox
control.
the picturebox control is within panel(autoscroll is enabled true)
scroll bars are enabled.
PictureBox1.Width = PictureBox1.Width + 25
PictureBox1.Height = PictureBox1.Height + 25
the problem is the picture goes only to right side when it gets its size
enlarged.
then i used left and top properties
PictureBox1.Width = PictureBox1.Width + 25
PictureBox1.Height = PictureBox1.Height + 25
PictureBox1.Left = PictureBox1.Left - 20
PictureBox1.Top = PictureBox1.Top - 5
the above code streched the picture both left and right side...but the
problem is i can scroll right side and see the picture but i could not
scroll left side to see picture streched on the left side.
i need to strech and zoom in and out both sides and should be viewed
thru scrollbars both sides using panel.
thanks in advance,
regards,
Thiru.
Regards,
Thiru.S