change picturebox image c#
pictureBox1.Image = Image.FromFile("../Pics/image1.jpg");
change picturebox image c#
pictureBox1.Image = Image.FromFile("../Pics/image1.jpg");
how to set picturebox width with form width in c#
private void Form1_Resize(object sender, System.EventArgs e)
{
Control control = (Control)sender;
double percentage = 0.7;
int width = control.Size.Width;
//width = (int)Math.Round(test*perc); imagewidth 70% of form width
int heigth = control.Size.Width;
picturebox1.Size = new Size(width,height);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us