static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); InqForm form = new InqForm(); form.setData("", "", "", "", ""); Application.Run(form); }
private void newInquiry_Click(object sender, EventArgs e) { try { InqForm inq = new InqForm(); inq.setData("", "", "", "", ""); inq.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }