上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: using System.Net.Mail; MailMessage mmsg = new MailMessage(); mmsg.From = new MailAddress("");//发件邮箱地址 mmsg.To.Add("");//收件邮箱地址 mmsg.Subject = "";//邮件标 阅读全文
posted @ 2023-11-03 00:31 芈璐 阅读(14) 评论(0) 推荐(1) 编辑
摘要: using System.Speech.Synthesis; SpeechSynthesizer speech = new SpeechSynthesizer(); speech.Speak("");//同步 speech.SpeakAsync("");//异步 阅读全文
posted @ 2023-11-03 00:02 芈璐 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 引用System.Management安装包。 using System.Management; ManagementObjectSearcher mydisplayResolution = new ManagementObjectSearcher("SELECT CurrentHorizontal 阅读全文
posted @ 2023-10-15 12:18 芈璐 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 键盘按住shift+F10,会弹出cmd命令提示符框,然后输入: OOBE\BYPASSNRO 回车后重启系统选择“我没有Internet连接“即可。 阅读全文
posted @ 2023-06-07 21:26 芈璐 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 添加引用 using System.Runtime.InteropServices;//调用外部的DLL 定义DLL [DllImport("kernel32.dll")] public static extern int WinExec(string programPath, int operTy 阅读全文
posted @ 2023-03-04 17:12 芈璐 阅读(122) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 引用user32.dll动态链接库(windows api), /// 使用库中定义 API:SetCursorPos /// </summary> [DllImport("user32.dll")] private static extern int SetCu 阅读全文
posted @ 2023-02-22 10:39 芈璐 阅读(863) 评论(0) 推荐(0) 编辑
摘要: 在部署redis服务器的电脑上,打开cmd,进入redis路径,输入redis-cli进入redis客户端 输入config set protected-mode no 再重启服务器的redis服务端。 在客户端电脑打开cmd,进入redis路径,输入redis-cli -h 192.168.0.1 阅读全文
posted @ 2023-02-20 14:17 芈璐 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 右键单击解决方案资源管理器中的项目文件夹,然后选择Clean(清理)。 阅读全文
posted @ 2022-12-14 10:55 芈璐 阅读(257) 评论(0) 推荐(0) 编辑
摘要: protected override CreateParams CreateParams //防止界面闪烁 { get { CreateParams paras = base.CreateParams; paras.ExStyle |= 0x02000000; return paras; } } 阅读全文
posted @ 2022-10-10 13:32 芈璐 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 原因及解决方法如下: 这是因为SQL Server的启动帐户(一般是system或某个操作系统管理员),对所要存储文件的盘根目录没有创建文件的权限。运行services.msc,在服务管理器里找到SQL Server服务(其显示名称为SQL Server (MSSQLSERVER)),右键选中后打开 阅读全文
posted @ 2022-09-13 09:39 芈璐 阅读(2738) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 11 下一页