void thisBox_Click(object sender, EventArgs e) { Other_URL_Form showForm = new Other_URL_Form(); showForm.Add_Data(other_label, other_url, other_note); showForm.Read_Only = read_only; showForm.ShowDialog(); showForm.Save_Data(ref other_label, ref other_url, ref other_note); if (showForm.Changed) { OnDataChanged(); } show_link_info(); }
void thisBox_KeyDown(object sender, KeyEventArgs e) { if ((e.KeyCode != Keys.Control) && (e.KeyCode != Keys.PrintScreen) && (e.KeyCode != Keys.Down)) { Other_URL_Form showForm = new Other_URL_Form(); showForm.Add_Data(other_label, other_url, other_note); showForm.Read_Only = read_only; showForm.ShowDialog(); showForm.Save_Data(ref other_label, ref other_url, ref other_note); if (showForm.Changed) { OnDataChanged(); } show_link_info(); } }