摘要:
System.Drawing.Bitmap bp; bp = new Bitmap(Application.StartupPath + @"\image\" + MeiYeShuo.UI.BI.Frame.NotifyIcon); try { notifyIcon1.Icon = Icon.FromHandle(bp.GetHicon()); notifyIcon1.Visible = true; } catch... 阅读全文
posted @ 2013-09-29 17:47
美丽的矩阵
阅读(315)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Windows.Forms;using System.Diagnostics;using System.IO;namespace frameTest{ static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { string MName = Process.GetCurrentProcess().MainModule.ModuleName; string PName = Pat.. 阅读全文
posted @ 2013-09-29 15:58
美丽的矩阵
阅读(145)
评论(0)
推荐(0)
摘要:
//利用反射进行动态加载和调用. Assembly ass=Assembly.LoadFrom(Application.StartupPath + "\\PlugsIn\\" + content[0]); //利用dll的路径加载//加载dll后,需要使用dll中某类. Type type=ass.GetType("DllTest1.a");//利用类型的命名空间和名称获得类型//需要实例化类型,才可以使用,参数可以人为的指定,也可以无参数,静态实例可以省略 //Object obj = Activator.CreateInstance(type,par 阅读全文
posted @ 2013-09-29 11:59
美丽的矩阵
阅读(191)
评论(0)
推荐(0)

浙公网安备 33010602011771号