public PasteTextToTextBoxFile ( TextBox tb ) : void | ||
tb | TextBox | имя текстбокса |
return | void |
public void PasteTextToTextBoxFile(TextBox tb)
{
var file = new System.Windows.Forms.OpenFileDialog();
if (file.ShowDialog() == DialogResult.OK)
{
tb.Text = file.FileName;
}
}