示例#1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.historyControl = new PaintDotNet.HistoryControl();
     this.imageList = new System.Windows.Forms.ImageList(this.components);
     this.toolStrip = new PaintDotNet.SystemLayer.ToolStripEx();
     this.rewindButton = new System.Windows.Forms.ToolStripButton();
     this.undoButton = new System.Windows.Forms.ToolStripButton();
     this.redoButton = new System.Windows.Forms.ToolStripButton();
     this.fastForwardButton = new System.Windows.Forms.ToolStripButton();
     this.clearHistoryButton = new System.Windows.Forms.ToolStripButton();
     this.toolStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // historyControl
     //
     this.historyControl.Dock = System.Windows.Forms.DockStyle.Top;
     this.historyControl.HistoryStack = null;
     this.historyControl.Location = new System.Drawing.Point(0, 0);
     this.historyControl.Name = "historyControl";
     this.historyControl.Size = new System.Drawing.Size(160, 152);
     this.historyControl.TabIndex = 0;
     this.historyControl.HistoryChanged += new System.EventHandler(this.HistoryControl_HistoryChanged);
     this.historyControl.RelinquishFocus += new EventHandler(HistoryControl_RelinquishFocus);
     this.historyControl.ManagedFocus = true;
     //
     // imageList
     //
     this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
     this.imageList.ImageSize = new System.Drawing.Size(16, 16);
     this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolStrip
     //
     this.toolStrip.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.rewindButton,
     this.undoButton,
     this.redoButton,
     this.fastForwardButton,
     this.clearHistoryButton});
     this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
     this.toolStrip.Location = new System.Drawing.Point(0, 139);
     this.toolStrip.Name = "toolStrip";
     this.toolStrip.Size = new System.Drawing.Size(160, 19);
     this.toolStrip.TabIndex = 2;
     this.toolStrip.Text = "toolStrip1";
     this.toolStrip.RelinquishFocus += new EventHandler(ToolStrip_RelinquishFocus);
     //
     // rewindButton
     //
     this.rewindButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.rewindButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.rewindButton.Name = "rewindButton";
     this.rewindButton.Size = new System.Drawing.Size(23, 4);
     this.rewindButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // undoButton
     //
     this.undoButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.undoButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.undoButton.Name = "undoButton";
     this.undoButton.Size = new System.Drawing.Size(23, 4);
     this.undoButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // redoButton
     //
     this.redoButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.redoButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.redoButton.Name = "redoButton";
     this.redoButton.Size = new System.Drawing.Size(23, 4);
     this.redoButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // fastForwardButton
     //
     this.fastForwardButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.fastForwardButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.fastForwardButton.Name = "fastForwardButton";
     this.fastForwardButton.Size = new System.Drawing.Size(23, 4);
     this.fastForwardButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // clearHistoryButton
     //
     this.clearHistoryButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.clearHistoryButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.clearHistoryButton.Name = "clearHistoryButton";
     this.clearHistoryButton.Size = new System.Drawing.Size(23, 4);
     this.clearHistoryButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // HistoryForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize = new System.Drawing.Size(165, 158);
     this.Controls.Add(this.toolStrip);
     this.Controls.Add(this.historyControl);
     this.Name = "HistoryForm";
     this.Enter += new System.EventHandler(this.HistoryForm_Enter);
     this.Controls.SetChildIndex(this.historyControl, 0);
     this.Controls.SetChildIndex(this.toolStrip, 0);
     this.toolStrip.ResumeLayout(false);
     this.toolStrip.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components        = new System.ComponentModel.Container();
     this.historyControl    = new PaintDotNet.HistoryControl();
     this.imageList         = new System.Windows.Forms.ImageList(this.components);
     this.toolStrip         = new PaintDotNet.SystemLayer.ToolStripEx();
     this.rewindButton      = new System.Windows.Forms.ToolStripButton();
     this.undoButton        = new System.Windows.Forms.ToolStripButton();
     this.redoButton        = new System.Windows.Forms.ToolStripButton();
     this.fastForwardButton = new System.Windows.Forms.ToolStripButton();
     this.toolStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // historyControl
     //
     this.historyControl.Dock             = System.Windows.Forms.DockStyle.Top;
     this.historyControl.HistoryStack     = null;
     this.historyControl.Location         = new System.Drawing.Point(0, 0);
     this.historyControl.Name             = "historyControl";
     this.historyControl.Size             = new System.Drawing.Size(160, 152);
     this.historyControl.TabIndex         = 0;
     this.historyControl.HistoryChanged  += new System.EventHandler(this.HistoryControl_HistoryChanged);
     this.historyControl.RelinquishFocus += new EventHandler(HistoryControl_RelinquishFocus);
     this.historyControl.ManagedFocus     = true;
     //
     // imageList
     //
     this.imageList.ColorDepth       = System.Windows.Forms.ColorDepth.Depth32Bit;
     this.imageList.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolStrip
     //
     this.toolStrip.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.rewindButton,
         this.undoButton,
         this.redoButton,
         this.fastForwardButton
     });
     this.toolStrip.LayoutStyle      = System.Windows.Forms.ToolStripLayoutStyle.Flow;
     this.toolStrip.Location         = new System.Drawing.Point(0, 139);
     this.toolStrip.Name             = "toolStrip";
     this.toolStrip.Size             = new System.Drawing.Size(160, 19);
     this.toolStrip.TabIndex         = 2;
     this.toolStrip.Text             = "toolStrip1";
     this.toolStrip.RelinquishFocus += new EventHandler(ToolStrip_RelinquishFocus);
     //
     // rewindButton
     //
     this.rewindButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.rewindButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.rewindButton.Name   = "rewindButton";
     this.rewindButton.Size   = new System.Drawing.Size(23, 4);
     this.rewindButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // undoButton
     //
     this.undoButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.undoButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.undoButton.Name   = "undoButton";
     this.undoButton.Size   = new System.Drawing.Size(23, 4);
     this.undoButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // redoButton
     //
     this.redoButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.redoButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.redoButton.Name   = "redoButton";
     this.redoButton.Size   = new System.Drawing.Size(23, 4);
     this.redoButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // fastForwardButton
     //
     this.fastForwardButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.fastForwardButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.fastForwardButton.Name   = "fastForwardButton";
     this.fastForwardButton.Size   = new System.Drawing.Size(23, 4);
     this.fastForwardButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // HistoryForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(165, 158);
     this.Controls.Add(this.toolStrip);
     this.Controls.Add(this.historyControl);
     this.Name   = "HistoryForm";
     this.Enter += new System.EventHandler(this.HistoryForm_Enter);
     this.Controls.SetChildIndex(this.historyControl, 0);
     this.Controls.SetChildIndex(this.toolStrip, 0);
     this.toolStrip.ResumeLayout(false);
     this.toolStrip.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components           = new System.ComponentModel.Container();
     this.layerControl         = new LayerControl();
     this.imageList            = new ImageList(this.components);
     this.toolStrip            = new SystemLayer.ToolStripEx();
     this.addNewLayerButton    = new ToolStripButton();
     this.deleteLayerButton    = new ToolStripButton();
     this.duplicateLayerButton = new ToolStripButton();
     this.mergeLayerDownButton = new ToolStripButton();
     this.moveLayerUpButton    = new ToolStripButton();
     this.moveLayerDownButton  = new ToolStripButton();
     this.propertiesButton     = new ToolStripButton();
     this.toolStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // layerControl
     //
     this.layerControl.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.layerControl.Document              = null;
     this.layerControl.Location              = new System.Drawing.Point(0, 0);
     this.layerControl.Name                  = "layerControl";
     this.layerControl.Size                  = new System.Drawing.Size(160, 158);
     this.layerControl.TabIndex              = 5;
     this.layerControl.AppWorkspace          = null;
     this.layerControl.ActiveLayerChanged   += this.LayerControl_ClickOnLayer;
     this.layerControl.ClickedOnLayer       += this.LayerControl_ClickOnLayer;
     this.layerControl.DoubleClickedOnLayer += this.LayerControl_DoubleClickedOnLayer;
     this.layerControl.RelinquishFocus      += new EventHandler(LayerControl_RelinquishFocus);
     //
     // imageList
     //
     this.imageList.ColorDepth       = System.Windows.Forms.ColorDepth.Depth32Bit;
     this.imageList.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolStrip
     //
     this.toolStrip.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.addNewLayerButton,
         this.deleteLayerButton,
         this.duplicateLayerButton,
         this.mergeLayerDownButton,
         this.moveLayerUpButton,
         this.moveLayerDownButton,
         this.propertiesButton
     });
     this.toolStrip.LayoutStyle      = System.Windows.Forms.ToolStripLayoutStyle.Flow;
     this.toolStrip.Location         = new System.Drawing.Point(0, 132);
     this.toolStrip.Name             = "toolStrip";
     this.toolStrip.Size             = new System.Drawing.Size(160, 26);
     this.toolStrip.TabIndex         = 7;
     this.toolStrip.TabStop          = true;
     this.toolStrip.RelinquishFocus += new EventHandler(ToolStrip_RelinquishFocus);
     //
     // addNewLayerButton
     //
     this.addNewLayerButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.addNewLayerButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.addNewLayerButton.Name   = "addNewLayerButton";
     this.addNewLayerButton.Size   = new System.Drawing.Size(23, 4);
     this.addNewLayerButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // deleteLayerButton
     //
     this.deleteLayerButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.deleteLayerButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.deleteLayerButton.Name   = "deleteLayerButton";
     this.deleteLayerButton.Size   = new System.Drawing.Size(23, 4);
     this.deleteLayerButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // duplicateLayerButton
     //
     this.duplicateLayerButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.duplicateLayerButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.duplicateLayerButton.Name   = "duplicateLayerButton";
     this.duplicateLayerButton.Size   = new System.Drawing.Size(23, 4);
     this.duplicateLayerButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // mergeLayerDownButton
     //
     this.mergeLayerDownButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
     this.mergeLayerDownButton.Name         = "mergeLayerDownButton";
     this.mergeLayerDownButton.Click       += new EventHandler(OnToolStripButtonClick);
     //
     // moveLayerUpButton
     //
     this.moveLayerUpButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.moveLayerUpButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.moveLayerUpButton.Name   = "moveLayerUpButton";
     this.moveLayerUpButton.Size   = new System.Drawing.Size(23, 4);
     this.moveLayerUpButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // moveLayerDownButton
     //
     this.moveLayerDownButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.moveLayerDownButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.moveLayerDownButton.Name   = "moveLayerDownButton";
     this.moveLayerDownButton.Size   = new System.Drawing.Size(23, 4);
     this.moveLayerDownButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // propertiesButton
     //
     this.propertiesButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.propertiesButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.propertiesButton.Name   = "propertiesButton";
     this.propertiesButton.Size   = new System.Drawing.Size(23, 4);
     this.propertiesButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // LayerForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.AutoValidate        = System.Windows.Forms.AutoValidate.EnablePreventFocusChange;
     this.ClientSize          = new System.Drawing.Size(165, 158);
     this.Controls.Add(this.toolStrip);
     this.Controls.Add(this.layerControl);
     this.Name = "LayersForm";
     this.Controls.SetChildIndex(this.layerControl, 0);
     this.Controls.SetChildIndex(this.toolStrip, 0);
     this.toolStrip.ResumeLayout(false);
     this.toolStrip.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.layerControl = new LayerControl();
     this.imageList = new ImageList(this.components);
     this.toolStrip = new SystemLayer.ToolStripEx();
     this.addNewLayerButton = new ToolStripButton();
     this.deleteLayerButton = new ToolStripButton();
     this.duplicateLayerButton = new ToolStripButton();
     this.mergeLayerDownButton = new ToolStripButton();
     this.moveLayerUpButton = new ToolStripButton();
     this.moveLayerDownButton = new ToolStripButton();
     this.propertiesButton = new ToolStripButton();
     this.toolStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // layerControl
     //
     this.layerControl.Dock = System.Windows.Forms.DockStyle.Fill;
     this.layerControl.Document = null;
     this.layerControl.Location = new System.Drawing.Point(0, 0);
     this.layerControl.Name = "layerControl";
     this.layerControl.Size = new System.Drawing.Size(160, 158);
     this.layerControl.TabIndex = 5;
     this.layerControl.AppWorkspace = null;
     this.layerControl.ActiveLayerChanged += new PaintDotNet.LayerEventHandler(this.LayerControl_ClickOnLayer);
     this.layerControl.ClickedOnLayer += new PaintDotNet.LayerEventHandler(this.LayerControl_ClickOnLayer);
     this.layerControl.DoubleClickedOnLayer += new PaintDotNet.LayerEventHandler(this.LayerControl_DoubleClickedOnLayer);
     this.layerControl.RelinquishFocus += new EventHandler(LayerControl_RelinquishFocus);
     //
     // imageList
     //
     this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
     this.imageList.ImageSize = new System.Drawing.Size(16, 16);
     this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolStrip
     //
     this.toolStrip.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                                                                                 this.addNewLayerButton,
                                                                                 this.deleteLayerButton,
                                                                                 this.duplicateLayerButton,
                                                                                 this.mergeLayerDownButton,
                                                                                 this.moveLayerUpButton,
                                                                                 this.moveLayerDownButton,
                                                                                 this.propertiesButton
                                                                            });
     this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
     this.toolStrip.Location = new System.Drawing.Point(0, 132);
     this.toolStrip.Name = "toolStrip";
     this.toolStrip.Size = new System.Drawing.Size(160, 26);
     this.toolStrip.TabIndex = 7;
     this.toolStrip.TabStop = true;
     this.toolStrip.RelinquishFocus += new EventHandler(ToolStrip_RelinquishFocus);
     //
     // addNewLayerButton
     //
     this.addNewLayerButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.addNewLayerButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.addNewLayerButton.Name = "addNewLayerButton";
     this.addNewLayerButton.Size = new System.Drawing.Size(23, 4);
     this.addNewLayerButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // deleteLayerButton
     //
     this.deleteLayerButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.deleteLayerButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.deleteLayerButton.Name = "deleteLayerButton";
     this.deleteLayerButton.Size = new System.Drawing.Size(23, 4);
     this.deleteLayerButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // duplicateLayerButton
     //
     this.duplicateLayerButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.duplicateLayerButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.duplicateLayerButton.Name = "duplicateLayerButton";
     this.duplicateLayerButton.Size = new System.Drawing.Size(23, 4);
     this.duplicateLayerButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // mergeLayerDownButton
     //
     this.mergeLayerDownButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
     this.mergeLayerDownButton.Name = "mergeLayerDownButton";
     this.mergeLayerDownButton.Click += new EventHandler(OnToolStripButtonClick);
     //
     // moveLayerUpButton
     //
     this.moveLayerUpButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.moveLayerUpButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.moveLayerUpButton.Name = "moveLayerUpButton";
     this.moveLayerUpButton.Size = new System.Drawing.Size(23, 4);
     this.moveLayerUpButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // moveLayerDownButton
     //
     this.moveLayerDownButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.moveLayerDownButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.moveLayerDownButton.Name = "moveLayerDownButton";
     this.moveLayerDownButton.Size = new System.Drawing.Size(23, 4);
     this.moveLayerDownButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // propertiesButton
     //
     this.propertiesButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.propertiesButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.propertiesButton.Name = "propertiesButton";
     this.propertiesButton.Size = new System.Drawing.Size(23, 4);
     this.propertiesButton.Click += new System.EventHandler(this.OnToolStripButtonClick);
     //
     // LayerForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     this.AutoValidate = System.Windows.Forms.AutoValidate.EnablePreventFocusChange;
     this.ClientSize = new System.Drawing.Size(165, 158);
     this.Controls.Add(this.toolStrip);
     this.Controls.Add(this.layerControl);
     this.Name = "LayersForm";
     this.Controls.SetChildIndex(this.layerControl, 0);
     this.Controls.SetChildIndex(this.toolStrip, 0);
     this.toolStrip.ResumeLayout(false);
     this.toolStrip.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }