随笔分类 -  winform

摘要:使用 Windows 自带的 SAPI(Speech API)。这是微软提供的系统级语音合成接口,无需联网、完全免费,并且支持多种语言(取决于系统安装的语音包)。支持中文:只要系统安装了中文语音包(Win10/11 默认有) 如何添加更多语音? 设置 → 时间和语言 → 语言 → 中文(简体)→ 选 阅读全文
posted @ 2026-01-06 22:03 ziff123 阅读(46) 评论(0) 推荐(0)
摘要:1、nuget安装NAudio 2、代码实现 using NAudio.Wave; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading 阅读全文
posted @ 2025-11-12 11:00 ziff123 阅读(6) 评论(0) 推荐(0)
摘要:1、nuget安装NAudio 2、代码实现 using NAudio.Wave; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace SoundWin.Commo 阅读全文
posted @ 2025-11-12 10:58 ziff123 阅读(13) 评论(0) 推荐(0)
摘要:问题: CefSharp.WinForms指定了低版本108.4.130 生成的libcef.dll版本却是121.3.7.0, 分析: 之前有指定版本121.3.7.0并生成过。怀疑用的是之前的版本,然后之前的版本的缓存在本地的哪个位置。于是删除项目底下 packages\CefSharp.Win 阅读全文
posted @ 2025-01-10 09:33 ziff123 阅读(138) 评论(0) 推荐(0)
摘要:一、定义获取html的js方法 StringBuilder sb = new StringBuilder(); sb.AppendLine("function tempFunction() {"); //sb.AppendLine(" return document.body.innerHTML; 阅读全文
posted @ 2024-08-26 14:20 ziff123 阅读(146) 评论(0) 推荐(0)
摘要:1、新建winform 项目.net frame4.8 2、nuget安装CefSharp.WinForms 版本84.4.10 3、debug模式修改为x86(重要) 4、初始浏览器 #region 初始化浏览器 /// <summary> /// 初始化浏览器 /// </summary> pr 阅读全文
posted @ 2024-08-26 09:41 ziff123 阅读(556) 评论(0) 推荐(0)
摘要:dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSiz 阅读全文
posted @ 2024-01-08 14:57 ziff123 阅读(517) 评论(0) 推荐(0)
摘要://引入命名空间:using System.Runtime.InteropServices; [DllImport("winspool.drv", CharSet = CharSet.Auto, SetLastError = true)] private static extern bool Set 阅读全文
posted @ 2023-04-20 13:50 ziff123 阅读(1218) 评论(0) 推荐(0)
摘要:CefSharp打开不安全的https站点时白屏解决办法: CefSettings settings = new CefSettings(); settings.CefCommandLineArgs.Add("--ignore-urlfetcher-cert-requests", "1");//证书 阅读全文
posted @ 2023-03-22 14:06 ziff123 阅读(889) 评论(0) 推荐(0)
摘要:winform弹出来窗口,自定义弹出位置试了this.Top和this.Location,均无效。查资料需要先设置窗体的定位方式才能生效FormStartPosition.Manual win.StartPosition = FormStartPosition.Manual; 阅读全文
posted @ 2023-01-31 17:24 ziff123 阅读(71) 评论(0) 推荐(0)