System.Windows.Forms.ThemeWin32Classic.DateTimePickerGetDropDownButtonArea C# (CSharp) Method

DateTimePickerGetDropDownButtonArea() public method

public DateTimePickerGetDropDownButtonArea ( DateTimePicker dateTimePicker ) : Rectangle
dateTimePicker DateTimePicker
return System.Drawing.Rectangle
		public override Rectangle DateTimePickerGetDropDownButtonArea (DateTimePicker dateTimePicker)
		{
			Rectangle rect = dateTimePicker.ClientRectangle;
			rect.X = rect.Right - SystemInformation.VerticalScrollBarWidth - 2;
			if (rect.Width > (SystemInformation.VerticalScrollBarWidth + 2)) {
				rect.Width = SystemInformation.VerticalScrollBarWidth;
			} else {
				rect.Width = Math.Max (rect.Width - 2, 0);
			}
			
			rect.Inflate (0, -2);
			return rect;
		}
ThemeWin32Classic