Here are the examples of the csharp api class System.Windows.Forms.Control.OnClientSizeChanged(System.EventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
20 Examples
0
1. Example
Project: just-gestures
Source File: CheckListBox.cs
Source File: CheckListBox.cs
protected override void OnClientSizeChanged(EventArgs e) { base.OnClientSizeChanged(e); if (this.Visible) { this.Columns[0].Width = this.ClientSize.Width; } }
0
2. Example
Project: winforms-modernui
Source File: MetroTextBox.cs
Source File: MetroTextBox.cs
private void BaseTextBoxClientSizeChanged(object sender, EventArgs e) { base.OnClientSizeChanged(e); }
0
3. Example
Project: partcover.net4
Source File: TextControl.cs
Source File: TextControl.cs
protected override void OnClientSizeChanged(EventArgs e) { if (view != null) view.Bounds = ViewRectangle.Size; base.OnClientSizeChanged(e); }
0
4. Example
Project: Mist
Source File: MetroTextBox.cs
Source File: MetroTextBox.cs
private void BaseTextBoxClientSizeChanged(object sender, EventArgs e) { base.OnClientSizeChanged(e); }
0
5. Example
Project: winauth
Source File: MetroTextBox.cs
Source File: MetroTextBox.cs
private void BaseTextBoxClientSizeChanged(object sender, EventArgs e) { base.OnClientSizeChanged(e); }
0
6. Example
Project: alphaTab
Source File: AlphaTabControl.cs
Source File: AlphaTabControl.cs
protected override void OnClientSizeChanged(EventArgs e) { base.OnClientSizeChanged(e); if (ScoreAutoSize) { ResizeTrack(RenderWidth); } }
0
7. Example
Project: NClass
Source File: Canvas.cs
Source File: Canvas.cs
protected override void OnClientSizeChanged(EventArgs e) { base.OnClientSizeChanged(e); OnVisibleAreaChanged(EventArgs.Empty); }
0
8. Example
Project: Unity-WinForms
Source File: Control.cs
Source File: Control.cs
protected virtual void SetClientSizeCore(int argX, int argY) { Size = SizeFromClientSize(argX, argY); clientWidth = argX; clientHeight = argY; OnClientSizeChanged(EventArgs.Empty); }
0
9. Example
Project: magicaltrevor
Source File: NotFound.cs
Source File: NotFound.cs
protected override void OnClientSizeChanged(EventArgs e) { base.OnClientSizeChanged(e); base.Invalidate(); }
0
10. Example
Project: SciterSharp
Source File: SciterControl.cs
Source File: SciterControl.cs
protected override void OnClientSizeChanged(EventArgs e) { if(SciterWnd._hwnd.ToInt32()!=0) { var sz = this.Size; PInvokeWindows.MoveWindow(SciterWnd._hwnd, 0, 0, sz.Width, sz.Height, true); } base.OnClientSizeChanged(e); }
0
11. Example
Project: vs-window-title-changer
Source File: TextBoxLineNumbers.cs
Source File: TextBoxLineNumbers.cs
protected override void OnClientSizeChanged(EventArgs e) { base.OnClientSizeChanged(e); UpdateLineNumbers(); }
0
12. Example
Project: NClass
Source File: Canvas.cs
Source File: Canvas.cs
protected override void OnClientSizeChanged(EventArgs e) { base.OnClientSizeChanged(e); OnVisibleAreaChanged(EventArgs.Empty); }
0
13. Example
Project: SharpDX
Source File: RenderForm.cs
Source File: RenderForm.cs
protected override void OnClientSizeChanged(EventArgs e) { base.OnClientSizeChanged(e); if (!isUserResizing && (isSizeChangedWithoutResizeBegin || cachedSize != Size)) { isSizeChangedWithoutResizeBegin = false; cachedSize = Size; OnUserResized(EventArgs.Empty); //UpdateScreen(); } }
0
14. Example
Project: ultraviolet
Source File: RadiansEditorControl.cs
Source File: RadiansEditorControl.cs
protected override void OnClientSizeChanged(EventArgs e) { RecalculateSelectionCircle(); base.OnClientSizeChanged(e); }
0
15. Example
Project: Unity-WinForms
Source File: Control.cs
Source File: Control.cs
protected void UpdateBounds(int argX, int argY, int argWidth, int argHeight, int argClientWidth, int argClientHeight) { int widthBuffer = width; int heightBuffer = height; bool locationFlag = x != argX || y != argY; bool sizeFlag = Width != argWidth || Height != argHeight || clientWidth != argClientWidth || clientHeight != argClientHeight; x = argX; y = argY; width = argWidth; height = argHeight; clientWidth = argClientWidth; clientHeight = argClientHeight; if (locationFlag) OnLocationChanged(EventArgs.Empty); if (!sizeFlag) return; var delta = new Point(widthBuffer - argWidth, heightBuffer - argHeight); ResizeChilds(delta); OnSizeChanged(EventArgs.Empty); OnClientSizeChanged(EventArgs.Empty); }
0
16. Example
Project: P8Coder
Source File: FastColoredTextBox.cs
Source File: FastColoredTextBox.cs
protected override void OnClientSizeChanged(EventArgs e) { base.OnClientSizeChanged(e); if (WordWrap) { //RecalcWordWrap(0, lines.Count - 1); NeedRecalc(false, true); Invalidate(); } OnVisibleRangeChanged(); UpdateScrollbars(); }
0
17. Example
Project: BaijiGenerator.Net
Source File: FastColoredTextBox.cs
Source File: FastColoredTextBox.cs
protected override void OnClientSizeChanged(EventArgs e) { base.OnClientSizeChanged(e); if (WordWrap) { //RecalcWordWrap(0, lines.Count - 1); NeedRecalc(false, true); Invalidate(); } OnVisibleRangeChanged(); UpdateScrollbars(); }
0
18. Example
Project: dash-core
Source File: FastColoredTextBox.cs
Source File: FastColoredTextBox.cs
protected override void OnClientSizeChanged(EventArgs e) { base.OnClientSizeChanged(e); if (WordWrap) { //RecalcWordWrap(0, lines.Count - 1); NeedRecalc(false, true); Invalidate(); } OnVisibleRangeChanged(); UpdateScrollbars(); }
0
19. Example
Project: ynoteclassic
Source File: FastColoredTextBox.cs
Source File: FastColoredTextBox.cs
protected override void OnClientSizeChanged(EventArgs e) { base.OnClientSizeChanged(e); if (WordWrap) { //RecalcWordWrap(0, lines.Count - 1); NeedRecalc(false, true); Invalidate(); } OnVisibleRangeChanged(); UpdateScrollbars(); }
0
20. Example
Project: NanUI
Source File: ModernUIForm.cs
Source File: ModernUIForm.cs
protected override void SetClientSizeCore(int x, int y) { if (!IsDesignMode) { base.SetClientSizeCore(x, y); } this.clientSizeSet = false; FieldInfo fiWidth = typeof(Control).GetField("clientWidth", BindingFlags.Instance | BindingFlags.NonPublic); FieldInfo fiHeight = typeof(Control).GetField("clientHeight", BindingFlags.Instance | BindingFlags.NonPublic); FieldInfo fi1 = typeof(Form).GetField("FormStateSetClientSize", BindingFlags.NonPublic | BindingFlags.Static), fiFormState = typeof(Form).GetField("formState", BindingFlags.NonPublic | BindingFlags.Instance); if (IsModernUIEnabled && fiWidth != null && fiHeight != null && fiFormState != null && fi1 != null) { this.clientSizeSet = true; this.Size = SizeFromClientSize(new Size(x, y)); fiWidth.SetValue(this, x); fiHeight.SetValue(this, y); BitVector32.Section bi1 = (BitVector32.Section)fi1.GetValue(this); BitVector32 state = (BitVector32)fiFormState.GetValue(this); state[bi1] = 1; fiFormState.SetValue(this, state); this.OnClientSizeChanged(EventArgs.Empty); state[bi1] = 0; fiFormState.SetValue(this, state); } else { base.SetClientSizeCore(x, y); } }