确保maskImageBox控件显示在顶层以解决暂停字样不显示问题

This commit is contained in:
zqm
2025-10-30 08:59:26 +08:00
parent 902bc197c2
commit 29c5757a18

View File

@@ -192,6 +192,8 @@ namespace JoyD.Windows.CS.Toprie
this.Controls.Add(this.imageBox); this.Controls.Add(this.imageBox);
// 再添加maskImageBox遮罩层确保它显示在上面 // 再添加maskImageBox遮罩层确保它显示在上面
this.Controls.Add(this.maskImageBox); this.Controls.Add(this.maskImageBox);
// 确保maskImageBox显示在顶层
this.maskImageBox.BringToFront();
this.Name = "Camera"; this.Name = "Camera";
this.Size = new System.Drawing.Size(512, 384); this.Size = new System.Drawing.Size(512, 384);
this.Load += new System.EventHandler(this.Camera_Load); this.Load += new System.EventHandler(this.Camera_Load);