Beispiel #1
0
        public void Show(GridEX grid, Form owner)
        {
            this.gridEXFieldChooserControl1.GridEX             = grid;
            this.gridEXFieldChooserControl1.VisualStyleManager = grid.VisualStyleManager;
            Point location = grid.Location;

            location      = grid.PointToScreen(location);
            location.X    = owner.Bounds.Right + 4;
            this.Location = location;
            Rectangle screenBounds = Screen.GetBounds(grid);

            if (this.Bounds.Right > screenBounds.Right)
            {
                this.Left = screenBounds.Right - this.Width;
            }
            this.Show(owner);
        }