private void CustomForm_Click(object sender, EventArgs e) { // launch custom UI CustomUI customWindow = new CustomUI(customParams, this); customWindow.Show(); }