System.Windows.Forms.Control.OnResize(System.EventArgs)

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 7

1. Example

Project: TaskScheduler
Source File: HidableDetailPanel.cs
View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			if (!detailHidden)
				defaultHeight = Height;
		}

2. Example

Project: VisualPlus
Source File: VisualControlBox.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            Size = new Size(100, 25);
        }

3. Example

Project: DroppedBoxx
Source File: Host.cs
View license
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();
                }
            }
        }

4. Example

View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);

            _baseTextBox.Location = new Point(0, 0);
            _baseTextBox.Width = Width;

            Height = _baseTextBox.Height + 5;
        }

5. Example

View license
protected override void OnResize(EventArgs e)
            {
                base.OnResize(e);

                baseTextBox.Location = new Point(0, 15);
                baseTextBox.Width = Width;

                Height = baseTextBox.Height + 20;
            }

6. Example

Project: MaterialWinforms
Source File: MaterialDivider.cs
View license
protected override void OnResize(System.EventArgs e)
        {
            base.OnResize(e);
            Height = 1;
        }

7. Example

View license
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);
    }

8. Example

View license
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);
    }

9. Example

View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);

            baseTextBox.Location = new Point(0, 15);
            baseTextBox.Width = Width;

            Height = baseTextBox.Height + 20;
        }

10. Example

Project: MaterialWinforms
Source File: MaterialTextBox.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);

            baseTextBox.Location = new Point(0, 15);
            baseTextBox.Width = Width;
            baseTextBox.Height = Height-20;

        }

11. Example

Project: gong-shell
Source File: ShellView.cs
View license
protected override void OnResize(EventArgs eventargs)
        {
            base.OnResize(eventargs);
            User32.SetWindowPos(m_ShellViewWindow, IntPtr.Zero, 0, 0,
                ClientRectangle.Width, ClientRectangle.Height, 0);
        }

12. Example

Project: gong-shell
Source File: ShellView.cs
View license
protected override void OnResize(EventArgs eventargs)
        {
            base.OnResize(eventargs);
            User32.SetWindowPos(m_ShellViewWindow, IntPtr.Zero, 0, 0,
                ClientRectangle.Width, ClientRectangle.Height, 0);
        }

13. Example

View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);

            _baseTextBox.Location = new Point(0, 0);
            _baseTextBox.Width = Width;

            Height = _baseTextBox.Height + 5;
        }

14. Example

Project: gitter
Source File: ViewDockGrid.cs
View license
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;
					}
				}
			}
		}

15. Example

Project: gitter
Source File: ViewHost.cs
View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			if(_tabs != null && _activeView != null)
			{
				_tabs.EnsureVisible(_activeView);
			}
		}

16. Example

Project: gitter
Source File: ViewHostHeader.cs
View license
protected override void OnResize(EventArgs e)
		{
			_buttons.Height = Height;
			base.OnResize(e);
		}

17. Example

Project: gitter
Source File: ViewSplit.cs
View license
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;
		}

18. Example

Project: gitter
Source File: WebBrowserViewToolbar.cs
View license
protected override void OnResize(EventArgs e)
		{
			_addressBox.Width = Width - 120;
			base.OnResize(e);
		}

19. Example

Project: gitter
Source File: PopupNotificationHeader.cs
View license
protected override void OnResize(EventArgs e)
		{
			_buttons.Height = Height;
			base.OnResize(e);
		}

20. Example

Project: OpenUO
Source File: GumpControl.cs
View license
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);
        }

21. Example

Project: JexusManager
Source File: BreadcrumbBar.cs
View license
protected override void OnResize ( EventArgs e ) {
			base.OnResize ( e );
			if ( this.Height != 22 ) {
				this.Height = 22;
			}
		}

22. Example

Project: JexusManager
Source File: BreadcrumbBarButton.cs
View license
protected override void OnResize ( EventArgs e ) {
			if ( this.Height != 20 ) {
				this.Height = 20;
			}

			if ( this.Width != 24 ) {
				this.Width = 24;
			}
			base.OnResize ( e );
		}

23. Example

Project: ME3Explorer
Source File: PCanvas.cs
View license
protected override void OnResize(EventArgs e) {
			base.OnResize (e);
			camera.Bounds = new RectangleF(camera.X, camera.Y, Bounds.Width, Bounds.Height);
		}

24. Example

Project: AltoControls
Source File: AltoNumericUpDown.cs
View license
protected override void OnResize(EventArgs e)
        {

            base.OnResize(e);
        }

25. Example

Project: AltoControls
Source File: AltoSlidingLabel.cs
View license
protected override void OnResize(EventArgs e)
        {
            timer.Enabled = true;
            base.OnResize(e);
        }

26. Example

Project: AltoControls
Source File: SwitchButton.cs
View license
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);
        }

27. Example

View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Height = 42;
		}

28. Example

View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Height = 22;
		}

29. Example

Project: Launcher_Multigaming
Source File: FlatClose.cs
View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Size = new Size(18, 18);
		}

30. Example

View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Width = 180;
			Height = 80;
		}

31. Example

Project: Launcher_Multigaming
Source File: FlatMax.cs
View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Size = new Size(18, 18);
		}

32. Example

Project: Launcher_Multigaming
Source File: FlatMini.cs
View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Size = new Size(18, 18);
		}

33. Example

Project: Launcher_Multigaming
Source File: FlatNumeric.cs
View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Height = 30;
		}

34. Example

View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Height = 42;
		}

35. Example

View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Height = 22;
		}

36. Example

View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			//Height = 32
		}

37. Example

Project: Launcher_Multigaming
Source File: FlatTextBox.cs
View license
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);
		}

38. Example

Project: Launcher_Multigaming
Source File: FlatToggle.cs
View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Width = 76;
			Height = 33;
		}

39. Example

View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Height = 23;
		}

40. Example

Project: Launcher_Multigaming
Source File: Italk.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            Width = 77;
            Height = 19;
        }

41. Example

Project: Launcher_Multigaming
Source File: Italk.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            Width = 41;
            Height = 23;
        }

42. Example

Project: Launcher_Multigaming
Source File: Italk.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            Height = 15;
        }

43. Example

Project: Launcher_Multigaming
Source File: Italk.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            Height = 20;
            Width = 20;
        }

44. Example

Project: Launcher_Multigaming
Source File: Italk.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            if (_DrawValueString == true)
            {
                Height = 40;
            }
            else
            {
                Height = 22;
            }
        }

45. Example

Project: Launcher_Multigaming
Source File: MonoFlat.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            Size = new Size(100, 25);
        }

46. Example

Project: Launcher_Multigaming
Source File: MonoFlat.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            this.Size = new Size(54, 54);
        }

47. Example

Project: Launcher_Multigaming
Source File: MonoFlat.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            this.Size = new Size(76, 33);
        }

48. Example

Project: Launcher_Multigaming
Source File: MonoFlat.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            this.Height = 17;
        }

49. Example

Project: Launcher_Multigaming
Source File: MonoFlat.cs
View license
protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            Height = 22;
        }

50. Example

View license
protected override void OnResize(EventArgs e)
		{
			base.OnResize(e);
			Height = 42;
		}