winform插件开发:

try
            {
                System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFrom(Application.StartupPath + "\\Kuwait2GNSNForms.dll");
 
                Type[] types = assembly.GetTypes();
 
 
                foreach (Type type in types)
                {
                    if (type.FullName == "Kuwait2GNSNForms.Channel_Match")
                    {
                        object obj = Activator.CreateInstance(type);
                        Form window = (System.Windows.Forms.Form)obj;
                        window.StartPosition = FormStartPosition.CenterScreen;
                        window.ShowDialog();
                        break;
                    }
                }
            }
            catch(Exception exception)
            {
                MessageBox.Show(this,exception.Message);
            }

 

相关文章:

  • 2022-12-23
  • 2021-09-07
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-28
  • 2021-09-09
  • 2021-08-30
  • 2022-12-23
  • 2021-05-03
  • 2021-07-28
  • 2022-12-23
相关资源
相似解决方案