OpenFileDialog1. showdialog();// assign the name to a text boxnameTextbox.text = Openfiledialog1.FileName;// store the image in a picture boxpictureBox1.Image = Image.FromFile(nameTextbox.Text);//creae a fileinfo objectFileInfo imageinfo = new FileInfo(nameTextbox.Text);//use Length method to get length and show it in a textBox.sizeTextbox.Text = imageinfo.Length.toString();