using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Casic.Birmm.RbFreqStandMeasure { public partial class MaskForm : Form { public MaskForm(Point point, Size size) { InitializeComponent(); this.Opacity = 0.5; this.BackColor = Color.FromArgb(186, 190, 198); // #babec6 this.FormBorderStyle = FormBorderStyle.None; this.StartPosition = FormStartPosition.Manual; // 设置位置和大小 this.Location = point; this.Size = size; } private void MaskForm_FormClosed(object sender, FormClosedEventArgs e) { this.Dispose(); } } }