Here are the examples of the csharp api class System.Windows.Forms.Control.OnResize(System.EventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
200 Examples
0
1. Example
Project: TaskScheduler
Source File: HidableDetailPanel.cs
Source File: HidableDetailPanel.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); if (!detailHidden) defaultHeight = Height; }
0
2. Example
Project: VisualPlus
Source File: VisualControlBox.cs
Source File: VisualControlBox.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Size = new Size(100, 25); }
0
3. Example
Project: DroppedBoxx
Source File: Host.cs
Source File: Host.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); if (this.Parent != null) { Rectangle r = ClientRectangle; if (control != null && size != r.Size) { size = r.Size; control.Bounds = r; control.Invalidate(); } } }
0
4. Example
Project: XboxKeyboardMouse
Source File: MaterialSingleLineTextField.cs
Source File: MaterialSingleLineTextField.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); _baseTextBox.Location = new Point(0, 0); _baseTextBox.Width = Width; Height = _baseTextBox.Height + 5; }
0
5. Example
Project: MaterialWinforms
Source File: MaterialActionBar.cs
Source File: MaterialActionBar.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); baseTextBox.Location = new Point(0, 15); baseTextBox.Width = Width; Height = baseTextBox.Height + 20; }
0
6. Example
Project: MaterialWinforms
Source File: MaterialDivider.cs
Source File: MaterialDivider.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Height = 1; }
0
7. Example
Project: MaterialWinforms
Source File: MaterialFileInput.cs
Source File: MaterialFileInput.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Height = MaterialTB.Height; PointAnimation = Width / 2; SizeInc_Dec = Width / 18; PointInc_Dec = Width / 36; MaterialTB.Width = Width - 21; InPutBTN.Location = new Point(Width - 21, 1); InPutBTN.Size = new Size(21, this.Height - 2); }
0
8. Example
Project: MaterialWinforms
Source File: MaterialFolderInput.cs
Source File: MaterialFolderInput.cs
protected override void OnResize(System.EventArgs e) { base.OnResize(e); Height = MaterialTB.Height; PointAnimation = Width / 2; SizeInc_Dec = Width / 18; PointInc_Dec = Width / 36; MaterialTB.Width = Width - 21; InPutBTN.Location = new Point(Width - 21, 1); InPutBTN.Size = new Size(21, this.Height - 2); }
0
9. Example
Project: MaterialWinforms
Source File: MaterialSingleLineTextField.cs
Source File: MaterialSingleLineTextField.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); baseTextBox.Location = new Point(0, 15); baseTextBox.Width = Width; Height = baseTextBox.Height + 20; }
0
10. Example
Project: MaterialWinforms
Source File: MaterialTextBox.cs
Source File: MaterialTextBox.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); baseTextBox.Location = new Point(0, 15); baseTextBox.Width = Width; baseTextBox.Height = Height-20; }
0
11. Example
Project: gong-shell
Source File: ShellView.cs
Source File: ShellView.cs
protected override void OnResize(EventArgs eventargs) { base.OnResize(eventargs); User32.SetWindowPos(m_ShellViewWindow, IntPtr.Zero, 0, 0, ClientRectangle.Width, ClientRectangle.Height, 0); }
0
12. Example
Project: gong-shell
Source File: ShellView.cs
Source File: ShellView.cs
protected override void OnResize(EventArgs eventargs) { base.OnResize(eventargs); User32.SetWindowPos(m_ShellViewWindow, IntPtr.Zero, 0, 0, ClientRectangle.Width, ClientRectangle.Height, 0); }
0
13. Example
Project: MaterialSkin
Source File: MaterialSingleLineTextField.cs
Source File: MaterialSingleLineTextField.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); _baseTextBox.Location = new Point(0, 0); _baseTextBox.Width = Width; Height = _baseTextBox.Height + 5; }
0
14. Example
Project: gitter
Source File: ViewDockGrid.cs
Source File: ViewDockGrid.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); var vspace = VerticalClientSpace; var hspace = HorizontalClientSpace; if(_left != null) { var h = _left.Height; if(h > vspace) { _left.Height = vspace; } else { if(h < _left.OptimalLength) { h = _left.OptimalLength; if(h > vspace) h = vspace; _left.Height = h; } } } if(_top != null) { var w = _top.Width; if(w > hspace) { _top.Width = hspace; } else { if(w < _top.OptimalLength) { w = _top.OptimalLength; if(w > hspace) w = hspace; _top.Width = w; } } } if(_right != null) { var h = _right.Height; if(h > vspace) { _right.Height = vspace; } else { if(h < _right.OptimalLength) { h = _right.OptimalLength; if(h > vspace) h = vspace; _right.Height = h; } } } if(_bottom != null) { var w = _bottom.Width; if(w > hspace) { _bottom.Width = hspace; } else { if(w < _bottom.OptimalLength) { w = _bottom.OptimalLength; if(w > hspace) w = hspace; _bottom.Width = w; } } } }
0
15. Example
Project: gitter
Source File: ViewHost.cs
Source File: ViewHost.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); if(_tabs != null && _activeView != null) { _tabs.EnsureVisible(_activeView); } }
0
16. Example
Project: gitter
Source File: ViewHostHeader.cs
Source File: ViewHostHeader.cs
protected override void OnResize(EventArgs e) { _buttons.Height = Height; base.OnResize(e); }
0
17. Example
Project: gitter
Source File: ViewSplit.cs
Source File: ViewSplit.cs
protected override void OnResize(EventArgs eventargs) { base.OnResize(eventargs); var size = Size; bool enforceChildSizes = true; switch(_orientation) { case Orientation.Horizontal: if(_size.Width == size.Width) enforceChildSizes = false; break; case Orientation.Vertical: if(_size.Height == size.Height) enforceChildSizes = false; break; default: throw new ApplicationException(); } if(enforceChildSizes) { for(int i = 0; i < _items.Count; ++i) { if(_items[i].Anchor == ViewConstants.AnchorAll) { enforceChildSizes = false; _positions.Actualize(); break; } } } if(enforceChildSizes) { _positions.Apply(); } _size = size; }
0
18. Example
Project: gitter
Source File: WebBrowserViewToolbar.cs
Source File: WebBrowserViewToolbar.cs
protected override void OnResize(EventArgs e) { _addressBox.Width = Width - 120; base.OnResize(e); }
0
19. Example
Project: gitter
Source File: PopupNotificationHeader.cs
Source File: PopupNotificationHeader.cs
protected override void OnResize(EventArgs e) { _buttons.Height = Height; base.OnResize(e); }
0
20. Example
Project: OpenUO
Source File: GumpControl.cs
Source File: GumpControl.cs
protected override void OnResize(EventArgs e) { _scrollBar.Location = new Point(Width - _scrollBar.Width - 2, 1); _scrollBar.Size = new Size(_scrollBar.Width, Height - 2); base.OnResize(e); }
0
21. Example
Project: JexusManager
Source File: BreadcrumbBar.cs
Source File: BreadcrumbBar.cs
protected override void OnResize ( EventArgs e ) { base.OnResize ( e ); if ( this.Height != 22 ) { this.Height = 22; } }
0
22. Example
Project: JexusManager
Source File: BreadcrumbBarButton.cs
Source File: BreadcrumbBarButton.cs
protected override void OnResize ( EventArgs e ) { if ( this.Height != 20 ) { this.Height = 20; } if ( this.Width != 24 ) { this.Width = 24; } base.OnResize ( e ); }
0
23. Example
Project: ME3Explorer
Source File: PCanvas.cs
Source File: PCanvas.cs
protected override void OnResize(EventArgs e) { base.OnResize (e); camera.Bounds = new RectangleF(camera.X, camera.Y, Bounds.Width, Bounds.Height); }
0
24. Example
Project: AltoControls
Source File: AltoNumericUpDown.cs
Source File: AltoNumericUpDown.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); }
0
25. Example
Project: AltoControls
Source File: AltoSlidingLabel.cs
Source File: AltoSlidingLabel.cs
protected override void OnResize(EventArgs e) { timer.Enabled = true; base.OnResize(e); }
0
26. Example
Project: AltoControls
Source File: SwitchButton.cs
Source File: SwitchButton.cs
protected override void OnResize(EventArgs e) { Width = (Height - 2) * 2; diameter = Width / 2; artis = 4 * diameter / 30; rect = new RoundedRectangleF(2 * diameter, diameter + 2, diameter / 2, 1, 1); circle = new RectangleF(!isOn ? 1 : Width - diameter - 1, 1, diameter, diameter); base.OnResize(e); }
0
27. Example
Project: Launcher_Multigaming
Source File: FlatAlertBox.cs
Source File: FlatAlertBox.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Height = 42; }
0
28. Example
Project: Launcher_Multigaming
Source File: FlatCheckBox.cs
Source File: FlatCheckBox.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Height = 22; }
0
29. Example
Project: Launcher_Multigaming
Source File: FlatClose.cs
Source File: FlatClose.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Size = new Size(18, 18); }
0
30. Example
Project: Launcher_Multigaming
Source File: FlatColorPalette.cs
Source File: FlatColorPalette.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Width = 180; Height = 80; }
0
31. Example
Project: Launcher_Multigaming
Source File: FlatMax.cs
Source File: FlatMax.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Size = new Size(18, 18); }
0
32. Example
Project: Launcher_Multigaming
Source File: FlatMini.cs
Source File: FlatMini.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Size = new Size(18, 18); }
0
33. Example
Project: Launcher_Multigaming
Source File: FlatNumeric.cs
Source File: FlatNumeric.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Height = 30; }
0
34. Example
Project: Launcher_Multigaming
Source File: FlatProgressBar.cs
Source File: FlatProgressBar.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Height = 42; }
0
35. Example
Project: Launcher_Multigaming
Source File: FlatRadioButton.cs
Source File: FlatRadioButton.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Height = 22; }
0
36. Example
Project: Launcher_Multigaming
Source File: FlatStickyButton.cs
Source File: FlatStickyButton.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); //Height = 32 }
0
37. Example
Project: Launcher_Multigaming
Source File: FlatTextBox.cs
Source File: FlatTextBox.cs
protected override void OnResize(EventArgs e) { TB.Location = new Point(5, 5); TB.Width = Width - 10; if (_Multiline) { TB.Height = Height - 11; } else { Height = TB.Height + 11; } base.OnResize(e); }
0
38. Example
Project: Launcher_Multigaming
Source File: FlatToggle.cs
Source File: FlatToggle.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Width = 76; Height = 33; }
0
39. Example
Project: Launcher_Multigaming
Source File: FlatTrackBar.cs
Source File: FlatTrackBar.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Height = 23; }
0
40. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Width = 77; Height = 19; }
0
41. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Width = 41; Height = 23; }
0
42. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Height = 15; }
0
43. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Height = 20; Width = 20; }
0
44. Example
Project: Launcher_Multigaming
Source File: Italk.cs
Source File: Italk.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); if (_DrawValueString == true) { Height = 40; } else { Height = 22; } }
0
45. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Size = new Size(100, 25); }
0
46. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); this.Size = new Size(54, 54); }
0
47. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); this.Size = new Size(76, 33); }
0
48. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); this.Height = 17; }
0
49. Example
Project: Launcher_Multigaming
Source File: MonoFlat.cs
Source File: MonoFlat.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Height = 22; }
0
50. Example
Project: Launcher_Multigaming
Source File: FlatAlertBox.cs
Source File: FlatAlertBox.cs
protected override void OnResize(EventArgs e) { base.OnResize(e); Height = 42; }