For example in the below code
pictureBox1.Top= (int)(pictureBox1.Top - (pictureBox1.Height * 0.025)); pictureBox1.Left = (int)(pictureBox1.Left - (pictureBox1.Width * 0.025)); pictureBox1.Height = (int)(pictureBox1.Height + (pictureBox1.Height* 0.05)); pictureBox1.Width = (int)(pictureBox1.Width + (pictureBox1.Width * 0.05));
Will zoom in on an image in a picturebox1 but why can't you use just
pictureBox1.Height = (PictureBox1.Height *2);
I know this seems like a dumb question but yeah. What does (int) do to magically make this work.