Panel1
This commit is contained in:
parent
494acc13e7
commit
e2a7f3e26b
1 changed files with 3 additions and 4 deletions
|
@ -282,7 +282,7 @@ namespace WindowsFormsApplication1
|
||||||
if (openFileDialog1.ShowDialog() == DialogResult.Cancel)
|
if (openFileDialog1.ShowDialog() == DialogResult.Cancel)
|
||||||
return;
|
return;
|
||||||
string filename = openFileDialog1.FileName;
|
string filename = openFileDialog1.FileName;
|
||||||
string fileText =File.ReadAllText(filename);
|
string fileText = File.ReadAllText(filename);
|
||||||
nazvanieTextBox.Text = fileText;
|
nazvanieTextBox.Text = fileText;
|
||||||
//MessageBox.Show("Ôàéë îòêðûò");
|
//MessageBox.Show("Ôàéë îòêðûò");
|
||||||
PictureBoxBackground.Image = Image.FromFile("kartinka.jpg");
|
PictureBoxBackground.Image = Image.FromFile("kartinka.jpg");
|
||||||
|
@ -320,8 +320,7 @@ namespace WindowsFormsApplication1
|
||||||
b1[0].Left = 30;
|
b1[0].Left = 30;
|
||||||
b1[0].Width = 200;
|
b1[0].Width = 200;
|
||||||
b1[0].Visible = true;
|
b1[0].Visible = true;
|
||||||
this.Controls.Add(b1[0]);
|
this.panel1.Controls.Add(b1[0]);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue