摘要: visual assist正常都用好好的,最近在win10系统下突然无效,全是黑色的。可以尝试下面方法看看: win10也是安装了Visual+Assist+X+for+vs2010(安装碰到系统函数没有颜色高亮,打开vc6的tools->options->format-category[All W 阅读全文
posted @ 2020-11-02 09:25 晨光静默 阅读(667) 评论(0) 推荐(0) 编辑
摘要: win7系统软件设置启动项后无法开机自动启动解决方法: 1、将软件快捷方式放入启动项后点击开始 2、在开始界面搜索本地安全策略 3、在本地安全策略点击本地策略 4、点击安全选项 5、禁用:以管理员批准模式运行所有管理员、用于内置管理员账户的管理员批准模式功能 https://jingyan.baid 阅读全文
posted @ 2020-10-19 15:57 晨光静默 阅读(2274) 评论(0) 推荐(0) 编辑
摘要: public Form1() { InitializeComponent(); //运行隐藏 //this.WindowState = FormWindowState.Minimized; //this.ShowInTaskbar = false; //SetVisibleCore(false); 阅读全文
posted @ 2020-10-15 19:28 晨光静默 阅读(136) 评论(0) 推荐(0) 编辑
摘要: static void Main() { #if false Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); / 阅读全文
posted @ 2020-10-15 19:26 晨光静默 阅读(123) 评论(0) 推荐(0) 编辑
摘要: bool WriteTxtFile(string filename, string content) { bool bRet = false; FileStream fs = null; StreamWriter sw = null; try { FileInfo fi = new FileInfo 阅读全文
posted @ 2020-10-15 19:07 晨光静默 阅读(105) 评论(0) 推荐(0) 编辑
摘要: c#版本: private bool SetAutoRun(bool onFlag) { bool bRet = true; try { string path = Application.ExecutablePath; RegistryKey rk = Registry.LocalMachine; 阅读全文
posted @ 2020-10-15 17:23 晨光静默 阅读(135) 评论(0) 推荐(0) 编辑
摘要: MesssageBox显示的对话框在所有页面之前,只需要像下边这么做 MessageBox(NULL,"GOOD","OK",MB_OK | MB_SYSTEMMODAL); 据说弹出对话框时此对话框会抢夺焦点,即就算焦点在其他程序上,也强.其他的几个参数都没有这个效果 可以参照对应的API: ht 阅读全文
posted @ 2020-10-13 14:02 晨光静默 阅读(177) 评论(0) 推荐(0) 编辑
摘要: int IsNumber(const char * authcode, int len) { for (int i = 0; i < len; i++){ if (authcode[i] >= '0'&&authcode[i] <= '9'){ continue; } else{ return i; 阅读全文
posted @ 2020-08-28 16:47 晨光静默 阅读(1435) 评论(0) 推荐(0) 编辑
摘要: protected override void WndProc(ref Message m) { const int WM_SYSCOMMAND = 0x0112; const int SC_CLOSE = 0xF060; if (m.Msg == WM_SYSCOMMAND && (int)m.W 阅读全文
posted @ 2020-08-24 09:59 晨光静默 阅读(473) 评论(0) 推荐(0) 编辑
摘要: public partial class frmYbCheckIn : Form { string[] args = null; public frmYbCheckIn() { InitializeComponent(); } public frmYbCheckIn(string[] args) { 阅读全文
posted @ 2020-08-24 09:42 晨光静默 阅读(214) 评论(0) 推荐(0) 编辑