i have uploaded the image into picture box using this
string myPic = string.Empty;
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "All Files|*.*";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
myPic = openFileDialog1.FileName;
pictreBxLogo.Image = null;
pictreBxLogo.Image = Image.FromFile(myPic);
}
how can i give a condition that image should be in 94 height and 94 width.
Someone help me please

IsaacPosted Sep 21, 2015, 9:56 AM
Vivek JoyPosted Sep 12, 2015, 12:24 AM
Rajeesh MenothPosted Sep 11, 2015, 12:31 PM
private void DisplayImage()
{
PictureBox imageControl = new PictureBox();
imageControl.Width = 400;
imageControl.Height = 400;
Bitmap image = new Bitmap("C:\\Images\\Creek.jpg");
imageControl.Dock = DockStyle.Fill;
imageControl.Image = (Image)image;
Controls.Add(imageControl);
}
Read this article : PictureBox in C#Vivek JoyPosted Sep 11, 2015, 9:33 AM
Rajeesh MenothPosted Sep 11, 2015, 8:59 AM
// Set the size of the PictureBox control.