private void bnRegistryBrowse_Click(object sender, EventArgs e) { FormRegistryBrowser form = new FormRegistryBrowser(false); if (form.ShowDialog() == DialogResult.OK) { tbRegistryValue.Text = form.RegValue; tbRegistryKey.Text = form.RegKey; } }
private void buttonBrowseRegistry_Click(object sender, System.EventArgs e) { string keyName; string valName; if (FormRegistryBrowser.Show(out keyName, out valName) == DialogResult.Cancel) { return; } textProtectedPath.Text = keyName; }