コード例 #1
0
 protected override void OnVisibleChanged(System.EventArgs e)
 {
     base.OnVisibleChanged(e);
     if (Visible && (FindForm() != null))
     {
         Dock = System.Windows.Forms.DockStyle.Fill;
         System.Drawing.Point     point     = PointToScreen(new System.Drawing.Point(0, 0));
         System.Drawing.Rectangle rectangle = System.Windows.Forms.Screen.GetBounds(this);
         _SizeGripAlignment = point.X < (rectangle.Width / 2) ? System.Windows.Forms.LeftRightAlignment.Right : System.Windows.Forms.LeftRightAlignment.Left;
         Skybound.ComponentModel.EnumTypeEditor.ResizableDropDown.ParentWindowSubclass.EnsureSubclassed(this);
     }
 }
コード例 #2
0
 protected override void OnVisibleChanged(System.EventArgs e)
 {
     base.OnVisibleChanged(e);
     if (Visible && (FindForm() != null))
     {
         Dock = System.Windows.Forms.DockStyle.Fill;
         System.Drawing.Point point = PointToScreen(new System.Drawing.Point(0, 0));
         System.Drawing.Rectangle rectangle = System.Windows.Forms.Screen.GetBounds(this);
         _SizeGripAlignment = point.X < (rectangle.Width / 2) ? System.Windows.Forms.LeftRightAlignment.Right : System.Windows.Forms.LeftRightAlignment.Left;
         Skybound.ComponentModel.EnumTypeEditor.ResizableDropDown.ParentWindowSubclass.EnsureSubclassed(this);
     }
 }