public static frmProviders CreateInstance()
        {
            frmProviders theInstance = new frmProviders();

            theInstance.Form_Load();
            return(theInstance);
        }
Пример #2
0
 public frmProviders()
     : base()
 {
     if (m_vb6FormDefInstance == null)
     {
         if (m_InitializingDefInstance)
         {
             m_vb6FormDefInstance = this;
         }
         else
         {
             try
             {
                 //For the start-up form, the first instance created is the default instance.
                 if (System.Reflection.Assembly.GetExecutingAssembly().EntryPoint.DeclaringType == this.GetType())
                 {
                     m_vb6FormDefInstance = this;
                 }
             }
             catch
             {
             }
         }
     }
     //This call is required by the Windows Form Designer.
     InitializeComponent();
     ReLoadForm(false);
 }
Пример #3
0
        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);
        }