示例#1
0
 // Display menu box to enable users to set up connection(s)
 private void connectionSettingsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FrmConnectionSettings SettingDialog = new FrmConnectionSettings();
     SettingDialog.Visible = false;
     SettingDialog.Show(this);
     SettingDialog.Visible = true;
 }
示例#2
0
 private void button8_Click(object sender, EventArgs e)
 {
     FrmConnectionSettings SettingDialog = new FrmConnectionSettings();
     SettingDialog.Visible = false;
     SettingDialog.Owner = this;
     SettingDialog.Show(this);
     SettingDialog.Location = System.Windows.Forms.Cursor.Position;
     SettingDialog.Visible = true;
 }