private void tsbProviders_Click(object sender, EventArgs e) { if (m_frmProviders == null || m_frmProviders.IsDisposed) { m_frmProviders = new frmProviders(); m_frmProviders.MdiParent = this; } m_frmProviders.Visible = false; m_frmProviders.Activate(); m_frmProviders.WindowState = FormWindowState.Maximized; m_frmProviders.Show(); this.tsslCurrent.Text = "当前操作:供应商管理"; m_iOutput = m_frmProviders.IOutput; this._SearchGood = null; }
public static frmProviders CreateInstance() { frmProviders theInstance = new frmProviders(); theInstance.Form_Load(); //The MDI form in the VB6 project had its //AutoShowChildren property set to True //To simulate the VB6 behavior, we need to //automatically Show the form whenever it //is loaded. If you do not want this behavior //then delete the following line of code //UPGRADE_TODO: (2018) Remove the next line of code to stop form from automatically showing. More Information: http://www.vbtonet.com/ewis/ewi2018.aspx theInstance.Show(); return(theInstance); }