private void InitializeControls() { SuspendLayout(); Size = new Size(236, 400); imageEditingPropertyTitlebar = new ImageEditingPropertyTitlebar(); imageEditingPropertyTitlebar.Dock = DockStyle.Top; imageEditingPropertyTitlebar.TabIndex = 0; imageEditingPropertyTitlebar.TabStop = false; imageEditingPropertyTitlebar.HideTitleBarClicked += new EventHandler(imageEditingPropertyTitlebar_HideTitleBarClicked); imagePropertyEditorControl = new ImagePropertyEditorControl(); imagePropertyEditorControl.AllowDragDropAutoScroll = false; imagePropertyEditorControl.AllPaintingInWmPaint = true; imagePropertyEditorControl.Dock = DockStyle.Fill; imagePropertyEditorControl.ImageInfo = null; imagePropertyEditorControl.Location = new Point(0, 25); imagePropertyEditorControl.Size = new Size(236, 335); imagePropertyEditorControl.TabIndex = 1; imagePropertyEditorControl.TopLayoutMargin = 2; imageEditingPropertyStatusbar = new ImageEditingPropertyStatusbar(); imageEditingPropertyStatusbar.Dock = DockStyle.Bottom; imageEditingPropertyStatusbar.Size = new Size(236, 24); imageEditingPropertyStatusbar.TabIndex = 2; imageEditingPropertyStatusbar.TabStop = false; Controls.Add(imagePropertyEditorControl); Controls.Add(imageEditingPropertyTitlebar); Controls.Add(imageEditingPropertyStatusbar); ResumeLayout(false); }
private void InitializeControls() { SuspendLayout() ; Size = new Size(236, 400) ; imageEditingPropertyTitlebar = new ImageEditingPropertyTitlebar(); imageEditingPropertyTitlebar.Dock = DockStyle.Top; imageEditingPropertyTitlebar.TabIndex = 0; imageEditingPropertyTitlebar.TabStop = false; imageEditingPropertyTitlebar.HideTitleBarClicked +=new EventHandler(imageEditingPropertyTitlebar_HideTitleBarClicked); imagePropertyEditorControl = new ImagePropertyEditorControl(); imagePropertyEditorControl.AllowDragDropAutoScroll = false; imagePropertyEditorControl.AllPaintingInWmPaint = true; imagePropertyEditorControl.Dock = DockStyle.Fill ; imagePropertyEditorControl.ImageInfo = null; imagePropertyEditorControl.Location = new Point(0, 25); imagePropertyEditorControl.Size = new Size(236, 335); imagePropertyEditorControl.TabIndex = 1; imagePropertyEditorControl.TopLayoutMargin = 2; imageEditingPropertyStatusbar = new ImageEditingPropertyStatusbar(); imageEditingPropertyStatusbar.Dock = DockStyle.Bottom; imageEditingPropertyStatusbar.Size = new Size(236, 24); imageEditingPropertyStatusbar.TabIndex = 2; imageEditingPropertyStatusbar.TabStop = false; Controls.Add(imagePropertyEditorControl); Controls.Add(imageEditingPropertyTitlebar); Controls.Add(imageEditingPropertyStatusbar); ResumeLayout(false); }