private void button4_Click(object sender, EventArgs e) { FileOpenDialog dialog = new FileOpenDialog(); if (dialog.trySelectFile(tbExecBin.Text)) { tbExecBin.Text = dialog.getFilename(); } }
private void button1_Click(object sender, EventArgs e) { FileOpenDialog dialog = new FileOpenDialog(); dialog.setFilter("apache configuration files (*.conf)|*.conf"); if (dialog.trySelectFile(tbVhosts.Text)) { tbVhosts.Text = dialog.getFilename(); } }