Hello,
I want to set the background image of form as per user selection. for that i have take openFileDialog but it only show the wallpapers when i click on open button it not applied to form. it show an error message that "path not found"
this code is on menu strip option
openFileDialog1.ShowDialog();
DialogResult dialog = MessageBox.Show("Do You Want To Apply This Wallpaper On Your Page","Add WallPaper" ,MessageBoxButtons.YesNo);
{
if (dialog == DialogResult.Yes)
{
Form6 fr6 = new Form6();
fr6.openFileDialog1.OpenFile();
}
}
isnt this code is enough to apply.