2009年8月29日

将C#程序嵌入资源中(C# 调用嵌入资源的EXE文件方法)

摘要: 1. 我们有一个test.exe的WinForm程序,这是我们要加壳的目标程序。 2. 新建一个WinForm工程,删除Form1,然后新建一个类。如下。 3. 将test.exe 拷贝到该工程目录,作为嵌入式资源。using System;using System.Windows.Forms;using System.Resources;using System.Reflection;using... 阅读全文

posted @ 2009-08-29 14:57 韩显川 阅读(3317) 评论(5) 推荐(1)

C#实现winform软件开机自动启动并最小化到系统托盘

摘要: 一、开机自动启动:拖一个CheckBox1、软件启动时给CheckBox重置状态:RegistryKey R_local = Registry.LocalMachine; RegistryKey R_run = R_local.CreateSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"); if (R_run.GetValue("Bi... 阅读全文

posted @ 2009-08-29 11:06 韩显川 阅读(911) 评论(0) 推荐(0)

导航