private void preferencesToolStripMenuItem_Click(object sender, EventArgs e) { hotkeyBinder.Unbind(Settings.Default.CaptureAreaHotkey); hotkeyBinder.Unbind(Settings.Default.CaptureFullscreenHotkey); hotkeyBinder.Unbind(Settings.Default.CaptureActiveWindowHotkey); var preferencesForm = new PreferencesForm(); preferencesForm.ShowDialog(); preferencesForm.Dispose(); InitializeHotkeyBinder(); }