open image. I don't
understand what i've to do to have a zoom of an image...i don't know where's
the error. If anyone know a simple code tell me the url :O)
private void Zoom200_Click(object sender, System.EventArgs e)
{
PictureBox.Width = PictureBox.Width + (PictureBox.Width * 2);
PictureBox.Height = PictureBox.Height + (PictureBox.Height * 2);
Ridisegna();
}
.......................
private void Ridisegna(){
PictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
if ((PictureBox.Image.Height>= PictureBox.Height )||(PictureBox.Image.Width
= PictureBox.Width)){
vScrollBar.Maximum = PictureBox.Height + hScrollBar.Height;
hScrollBar.Maximum = PictureBox.Width + vScrollBar.Width;
hScrollBar.Value = 0;
vScrollBar.Visible = true;
hScrollBar.Visible = true;}
else{
vScrollBar.Visible = false;
hScrollBar.Visible = false; }
The error is that i don't see horizontal and vertical bar when the image is
bigger than picturebox