From be1247627cd4283b8ae0c39aaac66b83fc1d55b2 Mon Sep 17 00:00:00 2001 From: yuuko Date: Mon, 24 Nov 2025 16:09:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DRichTextBox=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将txtLog从TextBox改为RichTextBox以支持彩色文本 - 更新ScrollBars枚举为RichTextBoxScrollBars - 解决SelectionColor属性不存在的编译错误 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Form1.Designer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Form1.Designer.cs b/Form1.Designer.cs index 63a0c80..2cf3ada 100644 --- a/Form1.Designer.cs +++ b/Form1.Designer.cs @@ -59,7 +59,7 @@ namespace SlideCombine grpProgress = new GroupBox(); progressBar = new ProgressBar(); - txtLog = new TextBox(); + txtLog = new RichTextBox(); // 设置源文件夹组 grpSourceFolder.Text = "📁 PDF文件夹路径"; @@ -180,7 +180,7 @@ namespace SlideCombine txtLog.Location = new Point(15, 60); txtLog.Size = new Size(640, 200); txtLog.Multiline = true; - txtLog.ScrollBars = ScrollBars.Vertical; + txtLog.ScrollBars = RichTextBoxScrollBars.Vertical; txtLog.ReadOnly = true; txtLog.Font = new Font("Consolas", 9F, FontStyle.Regular); txtLog.BackColor = Color.FromArgb(248, 248, 248); @@ -212,6 +212,6 @@ namespace SlideCombine private Button btnExit; private GroupBox grpProgress; private ProgressBar progressBar; - private TextBox txtLog; + private RichTextBox txtLog; } }