获取C#中exe程序的实例名

获取sanjiao.frmsanjiao

            string strPass = @"D:WinAutoTestsanjiao.exe";
            Assembly assebly = Assembly.LoadFrom(strPass);

            Module module = assebly.ManifestModule;
            Type[] types = module.GetTypes();

            Type tpForm = typeof(Form);

            foreach (Type type in types)
            {
                if (type.IsSubclassOf(tpForm))
                {                  
                    MessageBox.Show(type.FullName);
                }
            }        
原文地址:https://www.cnblogs.com/code1992/p/3203144.html