摘要: 方法1:https://blog.csdn.net/qq_37592750/article/details/104988552 1、在开始菜单中找到并打开以管理员身份运行的命令提示符。 2、在打开的命令提示符中输入“net stop wuauserv”命令并按下回车。 3、重命名c:\windows 阅读全文
posted @ 2020-11-02 22:23 六镇2012 阅读(1008) 评论(0) 推荐(0)
摘要: win10安装.NET Framework 4.6.2 Win10系统自带的.net framework版本为4.7,自己安装.NET Framework 4.6.2时会提示:这台计算机中已经安装了 .NET Framework 4.6.2 或版本更高的更新。 解决方法 下载安装.net frame 阅读全文
posted @ 2020-10-30 09:58 六镇2012 阅读(11716) 评论(1) 推荐(1)
摘要: 问题背景: 某个c#程序需要已管理员权限启动,并且有开机启动的功能。 解决方案: 1、已管理员权限启动参考c#程序以管理员权限运行。 2、开机启动,参考代码 public static void SetAutoRun(bool isAutoRun) { //设置是否自动启动 if (isAutoRu 阅读全文
posted @ 2020-10-27 16:29 六镇2012 阅读(1553) 评论(1) 推荐(1)
摘要: 1、通过添加应用程序清单文件: Vista 和 Windows 7 操作系统为了加强安全,增加了 UAC(用户账户控制) 的机制,如果 UAC 被打开,用户即使是以管理员权限登录,其应用程序默认情况下也无法对系统目录,系统注册表等可能影响系统运行的设置进行写操作。这个机制大大增强了系统的安全性,但对 阅读全文
posted @ 2020-10-26 10:44 六镇2012 阅读(1107) 评论(0) 推荐(0)
摘要: System.Windows.Forms.Application.ExitThread(); System.Windows.Forms.Application.Exit(); System.Windows.Forms.Application.Restart(); Process.GetCurrent 阅读全文
posted @ 2020-10-09 17:38 六镇2012 阅读(384) 评论(0) 推荐(0)
摘要: 通过自定义活动(Custom Action)卸载 https://blog.csdn.net/qq_20849387/article/details/78422081 https://blog.csdn.net/qq_20849387/article/details/78422432 https:/ 阅读全文
posted @ 2020-09-03 16:53 六镇2012 阅读(2403) 评论(0) 推荐(0)
摘要: 参考: wpf passwordbox控件 光标移到最后 WPF学习笔记-TextBox光标位置如何放到最后? PasswordBox /// <summary> /// 设置光标位置 /// </summary> /// <param name="passwordBox"></param> /// 阅读全文
posted @ 2020-09-02 17:12 六镇2012 阅读(587) 评论(0) 推荐(0)
摘要: 参考网址:https://www.e-learn.cn/tag/microsoft-ui-automation https://www.e-learn.cn/topic/3662339 https://social.msdn.microsoft.com/Forums/sqlserver/en-US/ 阅读全文
posted @ 2020-08-25 14:05 六镇2012 阅读(1134) 评论(0) 推荐(0)
摘要: https://cloud.tencent.com/developer/article/1021829 阅读全文
posted @ 2020-08-19 17:24 六镇2012 阅读(80) 评论(0) 推荐(0)
摘要: public static string ConvertHtml2String(string html) { html = html.Trim(); html = Regex.Replace(html, "(\\<script(.+?)\\</script\\>)|(\\<style(.+?)\\< 阅读全文
posted @ 2020-08-17 14:09 六镇2012 阅读(239) 评论(0) 推荐(0)