diff --git a/Source/Ruler/MainForm.cs b/Source/Ruler/MainForm.cs index 7a598ea..da3c468 100644 --- a/Source/Ruler/MainForm.cs +++ b/Source/Ruler/MainForm.cs @@ -77,18 +77,18 @@ public MainForm(RulerInfo rulerInfo) /// private void InitializeComponent() { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); - this.SuspendLayout(); - // - // MainForm - // - this.ClientSize = new System.Drawing.Size(120, 0); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.ClientSize = new System.Drawing.Size(0, 0); - this.Name = "Ruler"; - this.Opacity = 0D; - this.ResumeLayout(false); - } + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); + this.SuspendLayout(); + // + // MainForm + // + this.ClientSize = new System.Drawing.Size(120, 0); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.ClientSize = new System.Drawing.Size(0, 0); + this.Name = "Ruler"; + this.Opacity = 0D; + this.ResumeLayout(false); + } protected override void OnLoad(EventArgs e) { @@ -121,6 +121,8 @@ private void Init(RulerInfo rulerInfo) this.Text = "Ruler"; this.BackColor = Color.White; + this.TopMost = rulerInfo.TopMost; + // Create menu this.CreateMenuItems(rulerInfo); @@ -733,6 +735,6 @@ private static void DebugWrite(params object[] values) #endif } - #endregion Diagnostics - } + #endregion Diagnostics + } } \ No newline at end of file