private void ValidateForm_Layout(object sender, LayoutEventArgs e) { switch (activeState) { case "InputFile": xslRadioButton.Enabled = false; break; case "XsdFile": xslRadioButton.Enabled = false; againstXSDRadioButton.Enabled = false; break; } switch (selectedValidationType) { case "XSL": xslRadioButton.Checked = true; break; case "XSD": againstXSDRadioButton.Checked = true; break; default: xmlRadioButton.Checked = true; selectedValidationType = "Xml"; break; } }
private void SettingsLayout_Layout(object sender, LayoutEventArgs e) { foreach (UserControl ctrl in SettingsLayout.Controls) { ctrl.Width = SettingsLayout.Width - 25; } }
void MarathonLayout(object sender, LayoutEventArgs e) { scorePanel.SetBounds(5, 5, Width - 10, 40); questionPanel.SetBounds(5, 50, (Width - 10) / 2, Height - 50); gamePanel.SetBounds((Width / 2)+5, 50, (Width / 2) -10, Height-100); }
private void InfoForm_Layout(object sender, LayoutEventArgs e) { textBoxInfo.Location = new Point(2, 2); textBoxInfo.Size = new Size(ClientRectangle.Width - 4, ClientRectangle.Height - buttonOK.Size.Height*2); buttonOK.Location = new Point(ClientRectangle.Width - 100, ClientRectangle.Height - buttonOK.Size.Height*3/2); }
protected override void OnLayout(LayoutEventArgs levent) { try { DataGridCell currentCell = Grid.CurrentCell; if (currentCell.ColumnNumber == Cell) { DataTable ds = Grid.DataSource as DataTable; if (ds != null) { foreach (string item in Items) { if (currentCell.RowNumber < ds.Rows.Count) { DataRow row = ds.Rows[currentCell.RowNumber]; string currentValue = (string)row.ItemArray[Cell]; if (currentValue == item) { SelectedItem = item; break; } } } } } base.OnLayout(levent); } catch (Exception) {} }
protected override void OnLayout(LayoutEventArgs e) { int offset = AutoScrollPosition.Y; foreach (Control control in Controls) { var size = control.GetPreferredSize(new Size(ClientSize.Width, int.MaxValue)); control.SetBounds( 0, offset, ClientSize.Width, size.Height ); offset += size.Height; } bool vScroll = VScroll; AdjustFormScrollbars(AutoScroll); if (vScroll != VScroll) BeginInvoke(new Action(PerformLayout)); }
protected override void OnLayout(LayoutEventArgs levent) { labelControl.Location = new Point(WIDTH_PADDING, 8); labelControl.Width = Width - WIDTH_PADDING * 2; labelControl.Height = Height; base.OnLayout(levent); }
private void VKAuth_Layout(object sender, LayoutEventArgs e) { webBrowser1.Url = new System.Uri( "https://oauth.vk.com/authorize?client_id=5159394&display=page&redirect_uri=https://oauth.vk.com/blank.html&scope=friends&response_type=token&v=5.40&scope=" + Settings.VKscope, System.UriKind.Absolute ); }
/// <summary> /// 布局 /// </summary> /// <param name="container">容器</param> /// <param name="layoutEventArgs">Layout事件数据</param> /// <returns>是否成功 true-是 false-否</returns> public override bool Layout(object container, LayoutEventArgs layoutEventArgs) { Control parent = container as Control; Rectangle parentClientRectangle = parent.ClientRectangle; Point nextControlLocation = parentClientRectangle.Location; int parentWidth = parentClientRectangle.Width; foreach (Control c in parent.Controls) { if (!c.Visible) { continue; } nextControlLocation.Offset(c.Margin.Left, 0); c.Location = nextControlLocation; if (c.Location.X + c.Width * 2 > parentWidth) { nextControlLocation.X = parentClientRectangle.X; nextControlLocation.Y += c.Height; } else { nextControlLocation.X += c.Width; } } return false; }
/// <summary> /// See <see cref="Control.OnLayout"/> /// </summary> protected override void OnLayout(LayoutEventArgs e) { base.OnLayout(e); _caption.Width = Width - 2; Padding = new Padding(1, _caption.Height + 2, 1, 1); _caption.Top = 1; }
private void AddressTextBox_Layout(object sender, LayoutEventArgs e) { comboBoxHistory.Parent = this.Parent; comboBoxHistory.Location = this.Location; comboBoxHistory.Width = this.Width; comboBoxHistory.DropDownWidth = comboBoxHistory.Width + 15; }
private void CGFX_Layout(object sender, LayoutEventArgs e) { if (ModViewer != null) { ModViewer.Render(); } }
protected override void OnLayout(LayoutEventArgs e) { if ((this.ParentToolStrip != null) && this.ParentToolStrip.IsInDesignMode) { if (FlowLayout.GetFlowDirection(this) != FlowDirection.TopDown) { FlowLayout.SetFlowDirection(this, FlowDirection.TopDown); } if (FlowLayout.GetWrapContents(this)) { FlowLayout.SetWrapContents(this, false); } } else { if (FlowLayout.GetFlowDirection(this) != FlowDirection.LeftToRight) { FlowLayout.SetFlowDirection(this, FlowDirection.LeftToRight); } if (!FlowLayout.GetWrapContents(this)) { FlowLayout.SetWrapContents(this, true); } } base.OnLayout(e); }
protected override void OnLayout(LayoutEventArgs levent) { base.OnLayout(levent); // calculate the rectangle we will paint within _controlRectangle = new Rectangle(0, 1, Width, Height - 1); // calculate the image rectanagle (if we have an image) _imageRectangle = Rectangle.Empty; if (_image != null) { int IMAGE_TOP_OFFSET = 3; int IMAGE_LEFT_OFFSET = 2; _imageRectangle = new Rectangle(IMAGE_LEFT_OFFSET, IMAGE_TOP_OFFSET, _image.Width, _image.Height); } //calculate the text rectangle int TEXT_TOP_OFFSET = 4; int TEXT_LEFT_MARGIN = 2; int TEXT_LEFT_OFFSET = _imageRectangle.Right + TEXT_LEFT_MARGIN; _textRectangle = new Rectangle(TEXT_LEFT_OFFSET, TEXT_TOP_OFFSET, _controlRectangle.Width - TEXT_LEFT_OFFSET, _controlRectangle.Height - TEXT_TOP_OFFSET); // make sure the control is repainted Invalidate(); }
private void FolderBrowser_Layout(object sender, LayoutEventArgs e) { textBoxFolderPath.Left = labelCaption.Right; buttonBrowse.Left = this.Width - buttonBrowse.Width - 2; int width = buttonBrowse.Left - labelCaption.Right - 2; textBoxFolderPath.Width = width > 0 ? width : 0; }
private void Form1_Layout(object sender, LayoutEventArgs e) { Rect = ClientRectangle; Rect.Inflate(-10, -10); StrSize = string.Format("폭 = {0}, 높이 = {1}", Rect.Width, Rect.Height); Invalidate(); }
public override bool Layout(object container, LayoutEventArgs layoutEventArgs) { Panel parent = container as Panel; // Use DisplayRectangle so that parent.Padding is honored. Rectangle parentDisplayRectangle = parent.DisplayRectangle; Point nextControlLocation = parentDisplayRectangle.Location; foreach (Control c in parent.Controls) { // Only apply layout to visible controls. if (!c.Visible) { continue; } // Respect the margin of the control: // shift over the left and the top. nextControlLocation.Offset(c.Margin.Left, c.Margin.Top); // Set the location of the control. c.Location = nextControlLocation; // Set the autosized controls to their // autosized heights. Size preferredSize; if (c.AutoSize) { preferredSize = c.GetPreferredSize(parentDisplayRectangle.Size); } else { preferredSize = c.Size; } //if (parent.ClientRectangle.Width > preferredSize.Width) preferredSize = new Size(parent.ClientRectangle.Width, preferredSize.Height); c.Size = preferredSize; // Move X back to the display rectangle origin. nextControlLocation.X = parentDisplayRectangle.X; // Increment Y by the height of the control // and the bottom margin. nextControlLocation.Y += c.Height + c.Margin.Bottom; } if (!parent.AutoScroll) { parent.Height = nextControlLocation.Y; } // Optional: Return whether or not the container's // parent should perform layout as a result of this // layout. Some layout engines return the value of // the container's AutoSize property. return true; }
private void OnLayout(object sender, LayoutEventArgs e) { for (int i = 0; i < flpListBox.Controls.Count; i++) { flpListBox.Controls[i].Width = flpListBox.Size.Width - SystemInformation.VerticalScrollBarWidth; } }
protected override void OnLayout(LayoutEventArgs e) { base.OnLayout(e); int lineHeight = TextRenderer.MeasureText("W", Font).Height; _moreInformationLink.Top = (lineHeight + LineSpacing) * _lines.Count + TextPadding.Vertical; }
protected override void OnLayout(LayoutEventArgs levent) { base.OnLayout(levent); foreach (TabPage tp in this.TabPages) { tp.BackColor = Color.FromKnownColor(System.Drawing.KnownColor.Control); } }
protected override void OnLayout(LayoutEventArgs levent) { textBox.Location = new Point(2, ((Height - 1) / 2) - (textBox.Height / 2)); textBox.Size = new Size(Width - 4, textBox.Height); Refresh(); base.OnLayout(levent); }
protected override void OnLayout(LayoutEventArgs levent) { base.OnLayout(levent); this.labelStatus.Location = new Point( (this.ClientSize.Width - this.labelStatus.Width) / 2, (this.ClientSize.Height - this.labelStatus.Height) / 2); }
protected override void OnLayout(LayoutEventArgs levent) { base.OnLayout(levent); // Repaint when the layout has changed. Refresh(); }
/// <summary> make Width always match parent Width </summary> protected override void OnLayout(LayoutEventArgs levent) { if (Parent != null && Width != Parent.Width) { Width = Parent.Width; } base.OnLayout (levent); }
protected override void OnLayout(LayoutEventArgs levent) { if (!DesignMode) { BackColor = App.CurrentConfig.GetThemeBackColor(); ForeColor = App.CurrentConfig.ThemeColor; } base.OnLayout(levent); }
protected override void OnLayout(LayoutEventArgs levent) { int num = (this.Font.Height * 150) / 100; if (base.Width != num) { base.Width = num; } base.OnLayout(levent); }
protected override void OnLayout(LayoutEventArgs levent) { base.OnLayout(levent); Rectangle cr = this.ClientRectangle; browseButton.SetBounds(cr.Right - browseButton.Width, cr.Y, browseButton.Width, cr.Height); int x0 = 0; int x1 = browseButton.Left - ControlMargin; pathComboBox.SetBounds(x0, (cr.Height - pathComboBox.Height) / 2, x1 - x0, pathComboBox.Height); }
public void LayoutHandler(object sender, LayoutEventArgs e) { this.SuspendLayout(); int lineSzForCalc = 23; SortedList lineList = new SortedList(); foreach(ToolBarDockHolder holder in this.Controls) { if(holder.Visible) { int prefLine = GetPreferredLine(lineSzForCalc, holder); int prefPos = GetPreferredPosition(holder); LineHolder line = (LineHolder)lineList[prefLine]; if(line == null) { line = new LineHolder(prefLine); lineList.Add(prefLine, line); } int csize = GetHolderWidth(holder); int lsize = GetHolderLineSize(holder); line.AddColumn(new ColumnHolder(prefPos, holder, csize+1)); if(line.Size-1 < lsize) line.Size = lsize+1; } } int pos = 0; _lastLineCount = lineList.Count; if(_lastLineCount == 0) _lastLineCount = 1; for(int ndx = 0; ndx < lineList.Count; ndx++) { LineHolder line = (LineHolder)lineList.GetByIndex(ndx); if(line != null) { line.Distribute(); foreach(ColumnHolder col in line.Columns) { if(Horizontal) { col.Holder.Location = new Point(col.Position, pos); col.Holder.PreferredDockedLocation = new Point(col.Holder.PreferredDockedLocation.X, pos + col.Holder.Height/2); } else { col.Holder.Location = new Point(pos, col.Position); col.Holder.PreferredDockedLocation = new Point(pos + col.Holder.Width/2, col.Holder.PreferredDockedLocation.Y); } } pos += line.Size+1; } } FitHolders(); this.ResumeLayout(); }
protected override void OnLayout(LayoutEventArgs levent) { base.OnLayout(levent); // resize the textbox to fill the form if (richError != null) { richError.Width = ClientRectangle.Width - 2 * richError.Left; richError.Height = ClientRectangle.Height - richError.Top - richError.Left - (ClientRectangle.Height - btnOK.Top); } }
protected override void OnLayout(LayoutEventArgs levent) { base.OnLayout(levent); if (this.EnumerationValueMapping == null) this.EnumerationValueMapping = new EnumerationValueMapping(); nameTextBox.Text = this.EnumerationValueMapping.Name; databaseValueTextBox.Text = this.EnumerationValueMapping.DatabaseValue; descriptionTextBox.Text = this.EnumerationValueMapping.Description; }
private void ComboBoxTree_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { this.Height = this.tbSelectedValue.Height + 8; this.pnlBack.Size = new Size(this.Width, this.Height - 2); this.btnSelect.Size = new Size(16, this.Height - 6); this.btnSelect.Location = new Point(this.Width - this.btnSelect.Width - 4, 0); this.tbSelectedValue.Location = new Point(2, 2); this.tbSelectedValue.Width = this.Width - this.btnSelect.Width - 4; this.frmTreeView.Size = new Size(this.Width, this.tvTreeView.Height); this.pnlTree.Size = this.frmTreeView.Size; this.tvTreeView.Width = this.frmTreeView.Width - this.lblSizingGrip.Width; this.tvTreeView.Height = this.frmTreeView.Height - this.lblSizingGrip.Width; this.RelocateGrip(); }
// This method is called when the Layout event is fired. // This happens by during the initial load, by calling PerformLayout // or by resizing, adding or removing controls or other actions that // affect how the control is laid out. This method checks the // value of e.AffectedProperty and changes the look of the // control accordingly. private void LayoutControl_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { if (e.AffectedProperty != null) { if (e.AffectedProperty.Equals("Bounds")) { TextBox1.Left = (this.Width - TextBox1.Width) / 2; TextBox1.Top = (this.Height - TextBox1.Height) / 2; } } else { this.Size = new System.Drawing.Size(150, 160); TextBox1.Location = new System.Drawing.Point(16, 24); } TextBox1.Text = "Left = " + TextBox1.Left + " Top = " + TextBox1.Top; }
/// <internalonly> /// Overridden to invalidate host layout when our layout changes. /// </internalonly> protected override void OnLayout(SWF.LayoutEventArgs e) { base.OnLayout(e); _host.InvalidateMeasure(); #if DEBUG string compName = ""; if (e.AffectedControl != null) { compName = e.AffectedControl.Name; } else if (e.AffectedComponent != null) { compName = e.AffectedComponent.ToString(); } Debug.WriteLineIf(WindowsFormsHost._traceLayout.TraceInfo, String.Format(CultureInfo.CurrentCulture, "WindowsFormsHost({0}): Layout invalidated (control='{1}',property='{2}')", _host.Name, compName, e.AffectedProperty)); #endif }
protected override void OnLayout(System.Windows.Forms.LayoutEventArgs e) { base.OnLayout(e); int height = 0; int x = indent; foreach (MiniTab tab in tabs) { tab.VirtualSize = tab.DefaultVirtualSize; tab.VirtualLocation = new Point(x, 0); x += tab.VirtualWidth - 1; height = Math.Max(height, tab.VirtualBounds.Bottom); } Height = height + PADDING; RtlLayoutFixupLightweightControls(true); }
public bool LayoutList(object container, System.Windows.Forms.LayoutEventArgs layoutEventArgs) { Panel panel = (Panel)container; System.Windows.Forms.Control.ControlCollection controls = panel.Controls; for (int index = 0; index < controls.Count; index++) { Control control = controls[index]; control.Width = panel.ClientSize.Width - Spacing * 2; control.Height = RowHeight; control.Location = new System.Drawing.Point(Spacing, index * (RowHeight + Spacing) + Spacing); ((ObjectPaletteItem)control).DisplayMode = DisplayMode; } int totalRows = controls.Count; panel.Height = totalRows * (RowHeight + Spacing) + Spacing; return(true); }
protected override void OnLayout(System.Windows.Forms.LayoutEventArgs e) { //Active Palette //If m_palette IsNot Nothing Then if (_palette != null) { // We want the inner part of the control to act like a button, so // we need to find the correct palette state based on if the mouse // is over the control and currently being pressed down or not. PaletteState buttonState = GetSliderState(); // Create a rectangle inset, this is where we will draw a button Rectangle ButtonBounds = GetSliderBounds(GetSliderPosition()); // Get the renderer associated with this palette //Dim Renderer As IRenderer = m_palette.GetRenderer() IRenderer Renderer = _palette.GetRenderer(); // Create a layout context used to allow the renderer to layout the content using (ViewLayoutContext ViewContext = new ViewLayoutContext(this, Renderer)) { // Setup the appropriate style for the content m_paletteContent.Style = PaletteContentStyle.ButtonStandalone; // Cleaup resources by disposing of old memento instance if (m_mementoContent != null) { m_mementoContent.Dispose(); } // Ask the renderer to work out how the Content values will be layed out and // return a memento object that we cache for use when actually performing painting m_mementoContent = Renderer.RenderStandardContent.LayoutContent(ViewContext, ButtonBounds, m_paletteContent, this, VisualOrientation.Top, buttonState, false, glowing); } } //Base Layout Call base.OnLayout(e); }
/// <summary> /// todoComment /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void UpdateLayout(System.Object sender, System.Windows.Forms.LayoutEventArgs e) { Int16 Counter; int y; y = 0; for (Counter = 0; Counter <= FContainer.Controls.Count - 1; Counter += 1) { if (Counter == 0) { y = FTopMargin; } // else // begin // y := y + FDistance; // end; if (FContainer.Controls[Counter].Tag != null) { if (FContainer.Controls[Counter].Tag.ToString().Contains(TSingleLineFlow.BeginGroupIndicator)) { y = y + FSpacerDistance; } } if (FContainer.Controls[Counter].Visible == true) { FContainer.Controls[Counter].Left = FLeftMargin; FContainer.Controls[Counter].Top = y; FContainer.Controls[Counter].Width = FContainer.Width - FLeftMargin - FRightMargin; // FContainer.Controls[Counter].Height := FDistance; FContainer.Controls[Counter].TabIndex = Counter; y = y + FContainer.Controls[Counter].Height + FDistance; } } }
protected override void OnLayout(swf.LayoutEventArgs levent) { lastClientSize = ClientSize; var contentControl = Handler.Content.GetWindowsHandler(); if (contentControl != null) { var minSize = new Size(); var clientSize = lastClientSize; if (Handler.finalLayoutPass) { var preferred = contentControl.GetPreferredSize(Eto.Drawing.Size.Empty); if (Handler.ExpandContentWidth && preferred.Height > ClientSize.Height) { clientSize.Width -= swf.SystemInformation.VerticalScrollBarWidth; } if (Handler.ExpandContentHeight && preferred.Width > ClientSize.Width) { clientSize.Height -= swf.SystemInformation.HorizontalScrollBarHeight; } } if (Handler.ExpandContentWidth) { minSize.Width = Math.Max(0, clientSize.Width); } if (Handler.ExpandContentHeight) { minSize.Height = Math.Max(0, clientSize.Height); } // set minimum size for the content if we want to extend to the size of the scrollable width/height contentControl.ParentMinimumSize = minSize - Handler.Padding.Size; } base.OnLayout(levent); }
private void comboBoxTree_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { if (_CaptionLabel.Visible) { this.Height = _CaptionLabel.Height + this._TxtInputValue.Height + 8; } else { this.Height = this._TxtInputValue.Height + 8; } this._PnlBack.Size = new Size(this.Width, this.Height - 2); this._BtnSelect.Size = new Size(16, this._TxtInputValue.Height + 2); this._TxtInputValue.Width = this.Width - this._BtnSelect.Width - _ChkAllowFilter.Width - 6; if (!_CaptionLabel.Visible) { this._ChkAllowFilter.Location = new Point(2, 2); this._TxtInputValue.Location = new Point(2 + _ChkAllowFilter.Width, 2); this._BtnSelect.Location = new Point(this.Width - this._BtnSelect.Width - 4, 0); } else { this._ChkAllowFilter.Location = new Point(2, _CaptionLabel.Height + 2); this._TxtInputValue.Location = new Point(_ChkAllowFilter.Width + 2, _CaptionLabel.Height + 2); this._BtnSelect.Location = new Point(this.Width - this._BtnSelect.Width - 4, _CaptionLabel.Height); } _CaptionLabel.Location = new Point(0, 0); _CaptionLabel.Width = this.Width; this._ComboDrowForm.Size = new Size(this.Width, BEGIN_HEIGHT); this.relocateGrip(); }
private void UcImageList_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { }
private void ExpandingPanel_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { }
/// <summary> /// The PatientBanner layout. /// </summary> /// <param name="container">The layout control.</param> /// <param name="layoutEventArgs">The event args.</param> /// <returns>True if layout should be performed again by the parent of the container; otherwise, false.</returns> public override bool Layout(object container, System.Windows.Forms.LayoutEventArgs layoutEventArgs) { return(false); }
private void OnLayout(object sender, System.Windows.Forms.LayoutEventArgs le) { this.SetBounds(this.Location.X, this.Location.Y, 22, 22, BoundsSpecified.Size); }
private void PhotoViewerControl_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { //sizeThePictureBox(); }
private void PopupCellAllocatedRaw_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { iLbl_Description.Bounds = base.ClientRect; }
private void Output_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { this.richTextBox1.Size = this.ClientSize; }
/*protected Margins _margins = null; * public Margins Margins { * get { return _margins; } * } * * protected void OnMarginsChanged( Margins newMargins ) { * this.Invalidate(); * } */ protected void OnLayout(object sender, System.Windows.Forms.LayoutEventArgs e) { int height = ExoToolBar.sToolBarHeight; // + this._margins.Top + this._margins.Bottom; this.SetBounds(0, 0, 0, height, BoundsSpecified.Height); }
private void ProfilerForm_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { CheckAddBlankTab(); }
private void FormReport_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { printPreviewControl2.Location = new System.Drawing.Point(0, panel1.Height); printPreviewControl2.Height = ClientSize.Height - panel1.Height; printPreviewControl2.Width = ClientSize.Width; }
private void panelInsertion_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { cmbVals.Top = cmbNames.Top = cmbFunction.Top = 0; cmbVals.Width = cmbNames.Width = cmbFunction.Width = cmbNames.Left = panelInsertion.ClientRectangle.Width / 3; cmbFunction.Left = cmbFunction.Width * 2; }
protected override void OnLayout(System.Windows.Forms.LayoutEventArgs levent) { base.OnLayout(levent); }
protected override void OnLayout(swf.LayoutEventArgs levent) { UpdateScrollSize(); base.OnLayout(levent); }
private void ContrApptSheet_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { //Height=Lh*24*6; //Width=TimeWidth*2+ProvWidth*ProvCount+ColWidth*ColCount; }
private void Form1_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { DoResize(); }
private void FormReport_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { //the viewer dockFill does not work right, so this handles it manually: viewer.Location = new Point(0, ToolBarMain.Bottom); viewer.Size = new Size(ClientSize.Width, ClientSize.Height - viewer.Top); }
private void MagellanGpsButtonPanelControl_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { zoomCheckBox.Checked = Project.gpsZoomIntoTracks; startRouteNumericUpDown.Value = Project.startRouteNumber; }
private void ContrApptSheet_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { //Height=ApptDrawing.LineH*24*ApptDrawing.RowsPerHr; //Width=(int)(ApptDrawing.TimeWidth*2+ApptDrawing.ProvWidth*ApptDrawing.ProvCount+ApptDrawing.ColWidth*ApptDrawing.ColCount); }
private void TouchscreenUpDown_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { btnUp.Width = this.Width / 2; this.Invalidate(); }
private void ComboBoxMulti_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { textMain.Width = Width - 21; }
private void FormReport_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { printPreviewControl2.Width = ClientSize.Width; }