public static frmProviders CreateInstance() { frmProviders theInstance = new frmProviders(); theInstance.Form_Load(); return(theInstance); }
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); }