using System.ComponentModel; using System.Drawing; namespace System.Windows.Forms { /// /// Abstract form that hides all events and properties that aren't essential for a dialog. /// [System.Drawing.ToolboxBitmap(typeof(DialogBase), "TaskDialog")] public abstract class DialogBase : Form { /// /// Initializes a new instance of the class. /// public DialogBase() { base.MaximizeBox = false; base.ShowIcon = false; base.SizeGripStyle = Forms.SizeGripStyle.Hide; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.CenterParent; } /// /// Occurs when the form is activated in code or by the user. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler Activated { add { base.Activated += value; } remove { base.Activated -= value; } } /// /// Occurs when the value of the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler BindingContextChanged { add { base.BindingContextChanged += value; } remove { base.BindingContextChanged -= value; } } /// /// Occurs when the focus or keyboard user interface (UI) cues change. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event UICuesEventHandler ChangeUICues { add { base.ChangeUICues += value; } remove { base.ChangeUICues -= value; } } /// /// Occurs when the control is clicked. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler Click { add { base.Click += value; } remove { base.Click -= value; } } /// /// Occurs when the value of the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler ClientSizeChanged { add { base.ClientSizeChanged += value; } remove { base.ClientSizeChanged -= value; } } /// /// Occurs when a new control is added to the . /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event ControlEventHandler ControlAdded { add { base.ControlAdded += value; } remove { base.ControlAdded -= value; } } /// /// Occurs when a control is removed from the . /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event ControlEventHandler ControlRemoved { add { base.ControlRemoved += value; } remove { base.ControlRemoved -= value; } } /// /// Occurs when the form loses focus and is no longer the active form. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler Deactivate { add { base.Deactivate += value; } remove { base.Deactivate -= value; } } /// /// Occurs when the control is double-clicked. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler DoubleClick { add { base.DoubleClick += value; } remove { base.DoubleClick -= value; } } /// /// Occurs when a drag-and-drop operation is completed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event DragEventHandler DragDrop { add { base.DragDrop += value; } remove { base.DragDrop -= value; } } /// /// Occurs when an object is dragged into the control's bounds. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event DragEventHandler DragEnter { add { base.DragEnter += value; } remove { base.DragEnter -= value; } } /// /// Occurs when an object is dragged out of the control's bounds. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler DragLeave { add { base.DragLeave += value; } remove { base.DragLeave -= value; } } /// /// Occurs when an object is dragged over the control's bounds. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event DragEventHandler DragOver { add { base.DragOver += value; } remove { base.DragOver -= value; } } /// /// Occurs when the control is entered. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler Enter { add { base.Enter += value; } remove { base.Enter -= value; } } /// /// Occurs after the form is closed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event FormClosedEventHandler FormClosed { add { base.FormClosed += value; } remove { base.FormClosed -= value; } } /// /// Occurs before the form is closed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event FormClosingEventHandler FormClosing { add { base.FormClosing += value; } remove { base.FormClosing -= value; } } /// /// Occurs during a drag operation. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event GiveFeedbackEventHandler GiveFeedback { add { base.GiveFeedback += value; } remove { base.GiveFeedback -= value; } } /// /// Occurs when the Help button is clicked. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event CancelEventHandler HelpButtonClicked { add { base.HelpButtonClicked += value; } remove { base.HelpButtonClicked -= value; } } /// /// Occurs when the user requests help for a control. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event HelpEventHandler HelpRequested { add { base.HelpRequested += value; } remove { base.HelpRequested -= value; } } /// /// Occurs after the input language of the form has changed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event InputLanguageChangedEventHandler InputLanguageChanged { add { base.InputLanguageChanged += value; } remove { base.InputLanguageChanged -= value; } } /// /// Occurs when the user attempts to change the input language for the form. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event InputLanguageChangingEventHandler InputLanguageChanging { add { base.InputLanguageChanging += value; } remove { base.InputLanguageChanging -= value; } } /// /// Occurs when a key is pressed while the control has focus. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event KeyEventHandler KeyDown { add { base.KeyDown += value; } remove { base.KeyDown -= value; } } /// /// Occurs when a key is pressed while the control has focus. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event KeyPressEventHandler KeyPress { add { base.KeyPress += value; } remove { base.KeyPress -= value; } } /// /// Occurs when a key is released while the control has focus. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event KeyEventHandler KeyUp { add { base.KeyUp += value; } remove { base.KeyUp -= value; } } /// /// Occurs when a control should reposition its child controls. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event LayoutEventHandler Layout { add { base.Layout += value; } remove { base.Layout -= value; } } /// /// Occurs when the input focus leaves the control. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler Leave { add { base.Leave += value; } remove { base.Leave -= value; } } /// /// Occurs before a form is displayed for the first time. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler Load { add { base.Load += value; } remove { base.Load -= value; } } /// /// Occurs when the value of the property has changed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler MaximizedBoundsChanged { add { base.MaximizedBoundsChanged += value; } remove { base.MaximizedBoundsChanged -= value; } } /// /// Occurs when a multiple-document interface (MDI) child form is activated or closed within an MDI application. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler MdiChildActivate { add { base.MdiChildActivate += value; } remove { base.MdiChildActivate -= value; } } /// /// Occurs when the control loses or gains mouse capture. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler MouseCaptureChanged { add { base.MouseCaptureChanged += value; } remove { base.MouseCaptureChanged -= value; } } /// /// Occurs when the control is clicked by the mouse. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event MouseEventHandler MouseClick { add { base.MouseClick += value; } remove { base.MouseClick -= value; } } /// /// Occurs when the control is double clicked by the mouse. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event MouseEventHandler MouseDoubleClick { add { base.MouseDoubleClick += value; } remove { base.MouseDoubleClick -= value; } } /// /// Occurs when the mouse pointer is over the control and a mouse button is pressed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event MouseEventHandler MouseDown { add { base.MouseDown += value; } remove { base.MouseDown -= value; } } /// /// Occurs when the mouse pointer enters the control. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler MouseEnter { add { base.MouseEnter += value; } remove { base.MouseEnter -= value; } } /// /// Occurs when the mouse pointer rests on the control. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler MouseHover { add { base.MouseHover += value; } remove { base.MouseHover -= value; } } /// /// Occurs when the mouse pointer leaves the control. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler MouseLeave { add { base.MouseLeave += value; } remove { base.MouseLeave -= value; } } /// /// Occurs when the mouse pointer is moved over the control. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event MouseEventHandler MouseMove { add { base.MouseMove += value; } remove { base.MouseMove -= value; } } /// /// Occurs when the mouse pointer is over the control and a mouse button is released. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event MouseEventHandler MouseUp { add { base.MouseUp += value; } remove { base.MouseUp -= value; } } /// /// Occurs when the control is moved. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler Move { add { base.Move += value; } remove { base.Move -= value; } } /// /// Occurs when the control is redrawn. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event PaintEventHandler Paint { add { base.Paint += value; } remove { base.Paint -= value; } } /// /// Occurs when the property value changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler ParentChanged { add { base.ParentChanged += value; } remove { base.ParentChanged -= value; } } /// /// Occurs before the event when a key is pressed while focus is on this control. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event PreviewKeyDownEventHandler PreviewKeyDown { add { base.PreviewKeyDown += value; } remove { base.PreviewKeyDown -= value; } } /// /// Occurs when is providing help to accessibility applications. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp { add { base.QueryAccessibilityHelp += value; } remove { base.QueryAccessibilityHelp -= value; } } /// /// Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event QueryContinueDragEventHandler QueryContinueDrag { add { base.QueryContinueDrag += value; } remove { base.QueryContinueDrag -= value; } } /// /// Occurs when the value of the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler RegionChanged { add { base.RegionChanged += value; } remove { base.RegionChanged -= value; } } /// /// Occurs when the control is resized. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler Resize { add { base.Resize += value; } remove { base.Resize -= value; } } /// /// Occurs when a form enters resizing mode. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler ResizeBegin { add { base.ResizeBegin += value; } remove { base.ResizeBegin -= value; } } /// /// Occurs when a form exits resizing mode. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler ResizeEnd { add { base.ResizeEnd += value; } remove { base.ResizeEnd -= value; } } /// /// Occurs when the user or code scrolls through the client area. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event ScrollEventHandler Scroll { add { base.Scroll += value; } remove { base.Scroll -= value; } } /// /// Occurs whenever the form is first displayed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler Shown { add { base.Shown += value; } remove { base.Shown -= value; } } /// /// Occurs when the control style changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler StyleChanged { add { base.StyleChanged += value; } remove { base.StyleChanged -= value; } } /// /// Occurs when the system colors change. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler SystemColorsChanged { add { base.SystemColorsChanged += value; } remove { base.SystemColorsChanged -= value; } } /// /// Occurs when the control is finished validating. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler Validated { add { base.Validated += value; } remove { base.Validated -= value; } } /// /// Occurs when the control is validating. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event CancelEventHandler Validating { add { base.Validating += value; } remove { base.Validating -= value; } } /// /// Occurs when [auto size changed]. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler AutoSizeChanged { add { base.AutoSizeChanged += value; } remove { base.AutoSizeChanged -= value; } } /// /// Occurs when [auto validate changed]. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler AutoValidateChanged { add { base.AutoValidateChanged += value; } remove { base.AutoValidateChanged -= value; } } /// /// Occurs when the value of the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler BackColorChanged { add { base.BackColorChanged += value; } remove { base.BackColorChanged -= value; } } /// /// Occurs when the value of the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler BackgroundImageChanged { add { base.BackgroundImageChanged += value; } remove { base.BackgroundImageChanged -= value; } } /// /// Occurs when the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler BackgroundImageLayoutChanged { add { base.BackgroundImageLayoutChanged += value; } remove { base.BackgroundImageLayoutChanged -= value; } } /// /// Occurs when the value of the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler CausesValidationChanged { add { base.CausesValidationChanged += value; } remove { base.CausesValidationChanged -= value; } } /// /// Occurs when the value of the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler ContextMenuChanged { add { base.ContextMenuChanged += value; } remove { base.ContextMenuChanged -= value; } } /// /// Occurs when the value of the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler ContextMenuStripChanged { add { base.ContextMenuStripChanged += value; } remove { base.ContextMenuStripChanged -= value; } } /// /// Occurs when the value of the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler CursorChanged { add { base.CursorChanged += value; } remove { base.CursorChanged -= value; } } /// /// Occurs when the value of the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler DockChanged { add { base.DockChanged += value; } remove { base.DockChanged -= value; } } /// /// Occurs when the property value has changed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler EnabledChanged { add { base.EnabledChanged += value; } remove { base.EnabledChanged -= value; } } /// /// Occurs when the property value changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler FontChanged { add { base.FontChanged += value; } remove { base.FontChanged -= value; } } /// /// Occurs when the property value changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler ForeColorChanged { add { base.ForeColorChanged += value; } remove { base.ForeColorChanged -= value; } } /// /// Occurs when the property has changed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler ImeModeChanged { add { base.ImeModeChanged += value; } remove { base.ImeModeChanged -= value; } } /// /// Occurs when the property value has changed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler LocationChanged { add { base.LocationChanged += value; } remove { base.LocationChanged -= value; } } /// /// Occurs when [margin changed]. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler MarginChanged { add { base.MarginChanged += value; } remove { base.MarginChanged -= value; } } /// /// Occurs when the value of the property has changed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler MaximumSizeChanged { add { base.MaximumSizeChanged += value; } remove { base.MaximumSizeChanged -= value; } } /// /// Occurs when the value of the property has changed. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler MinimumSizeChanged { add { base.MinimumSizeChanged += value; } remove { base.MinimumSizeChanged -= value; } } /// /// Occurs when the control's padding changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler PaddingChanged { add { base.PaddingChanged += value; } remove { base.PaddingChanged -= value; } } /// /// Occurs when the property value changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler RightToLeftChanged { add { base.RightToLeftChanged += value; } remove { base.RightToLeftChanged -= value; } } /// /// Occurs after the value of the property changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler RightToLeftLayoutChanged { add { base.RightToLeftLayoutChanged += value; } remove { base.RightToLeftLayoutChanged -= value; } } /// /// Occurs when the property value changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler SizeChanged { add { base.SizeChanged += value; } remove { base.SizeChanged -= value; } } /// /// Occurs when [tab stop changed]. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler TabStopChanged { add { base.TabStopChanged += value; } remove { base.TabStopChanged -= value; } } /// /// Occurs when the property value changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler TextChanged { add { base.TextChanged += value; } remove { base.TextChanged -= value; } } /// /// Occurs when the property value changes. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler VisibleChanged { add { base.VisibleChanged += value; } remove { base.VisibleChanged -= value; } } /// /// Gets or sets the button on the form that is clicked when the user presses the ENTER key. /// /// /// /// An that represents the button to use as the accept button for the form. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new IButtonControl AcceptButton { get { return base.AcceptButton; } set { base.AcceptButton = value; } } /// /// Gets or sets the description of the control used by accessibility client applications. /// /// /// /// The description of the control used by accessibility client applications. The default is null. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new string AccessibleDescription { get { return base.AccessibleDescription; } set { base.AccessibleDescription = value; } } /// /// Gets or sets the name of the control used by accessibility client applications. /// /// /// /// The name of the control used by accessibility client applications. The default is null. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new string AccessibleName { get { return base.AccessibleName; } set { base.AccessibleName = value; } } /// /// Gets or sets the accessible role of the control /// /// /// /// One of the values of . The default is Default. /// /// /// The value assigned is not one of the values. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new AccessibleRole AccessibleRole { get { return base.AccessibleRole; } set { base.AccessibleRole = value; } } /// /// Gets or sets a value indicating whether the control can accept data that the user drags onto it. /// /// /// true if drag-and-drop operations are allowed in the control; otherwise, false. The default is false. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override bool AllowDrop { get { return base.AllowDrop; } set { base.AllowDrop = value; } } /// /// Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. /// /// /// /// A bitwise combination of the values. The default is Top and Left. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override AnchorStyles Anchor { get { return base.Anchor; } set { base.Anchor = value; } } /// /// Gets or sets a value indicating whether the form adjusts its size to fit the height of the font used on the form and scales its controls. /// /// /// true if the form will automatically scale itself and its controls based on the current font assigned to the form; otherwise, false. The default is true. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), Obsolete("This property has been deprecated. Use the AutoScaleMode property instead. http://go.microsoft.com/fwlink/?linkid=14202")] public new bool AutoScale { #pragma warning disable 0618 get { return base.AutoScale; } set { base.AutoScale = value; } #pragma warning restore 0618 } /// /// Gets or sets the base size used for autoscaling of the form. /// /// /// /// A that represents the base size that this form uses for autoscaling. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override Size AutoScaleBaseSize { get { return base.AutoScaleBaseSize; } set { base.AutoScaleBaseSize = value; } } /// /// Gets or sets a value indicating whether the form enables autoscrolling. /// /// /// true to enable autoscrolling on the form; otherwise, false. The default is false. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override bool AutoScroll { get { return base.AutoScroll; } set { base.AutoScroll = value; } } /// /// Gets or sets the size of the auto-scroll margin. /// /// /// /// A that represents the height and width of the auto-scroll margin in pixels. /// /// /// The or value assigned is less than 0. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(typeof(Size), "0, 0")] public new Size AutoScrollMargin { get { return base.AutoScrollMargin; } set { base.AutoScrollMargin = value; } } /// /// Gets or sets the minimum size of the auto-scroll. /// /// /// /// A that determines the minimum size of the virtual area through which the user can scroll. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(typeof(Size), "0, 0")] public new Size AutoScrollMinSize { get { return base.AutoScrollMinSize; } set { base.AutoScrollMinSize = value; } } /// /// Resize the form according to the setting of . /// /// /// true if the form will automatically resize; false if it must be manually resized. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public override bool AutoSize { get { return base.AutoSize; } set { base.AutoSize = value; } } /// /// Gets or sets the mode by which the form automatically resizes itself. /// /// /// /// An enumerated value. The default is . /// /// /// The value is not a valid value. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new AutoSizeMode AutoSizeMode { get { return base.AutoSizeMode; } set { base.AutoSizeMode = value; } } /// /// Gets or sets a value that indicates whether controls in this container will be automatically validated when the focus changes. /// /// /// An enumerated value that indicates whether contained controls are implicitly validated on focus change. The default is . /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override AutoValidate AutoValidate { get { return base.AutoValidate; } set { base.AutoValidate = value; } } /// /// Gets or sets the background color for the control. /// /// /// A that represents the background color of the control. The default is the value of the property. /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override Color BackColor { get { return base.BackColor; } set { base.BackColor = value; } } /// /// Gets or sets the background image displayed in the control. /// /// /// /// An that represents the image to display in the background of the control. /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override Image BackgroundImage { get { return base.BackgroundImage; } set { base.BackgroundImage = value; } } /// /// Gets or sets the background image layout as defined in the enumeration. /// /// /// /// One of the values of ( , , , , or ). is the default value. /// /// /// The specified enumeration value does not exist. /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override ImageLayout BackgroundImageLayout { get { return base.BackgroundImageLayout; } set { base.BackgroundImageLayout = value; } } /// /// Gets or sets the button control that is clicked when the user presses the ESC key. /// /// /// /// An that represents the cancel button for the form. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new IButtonControl CancelButton { get { return base.CancelButton; } set { base.CancelButton = value; } } /// /// Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus. /// /// /// true if the control causes validation to be performed on any controls requiring validation when it receives focus; otherwise, false. The default is true. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new bool CausesValidation { get { return base.CausesValidation; } set { base.CausesValidation = value; } } /// /// Gets or sets the size of the client area of the form. /// /// /// /// A that represents the size of the form's client area. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public new Size ClientSize { get { return base.ClientSize; } set { base.ClientSize = value; } } /// /// Gets or sets the shortcut menu associated with the control. /// /// /// /// A that represents the shortcut menu associated with the control. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override ContextMenu ContextMenu { get { return base.ContextMenu; } set { base.ContextMenu = value; } } /// /// Gets or sets the associated with this control. /// /// /// /// The for this control, or null if there is no . The default is null. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override ContextMenuStrip ContextMenuStrip { get { return base.ContextMenuStrip; } set { base.ContextMenuStrip = value; } } /// /// Gets or sets a value indicating whether a control box is displayed in the caption bar of the form. /// /// /// true if the form displays a control box in the upper left corner of the form; otherwise, false. The default is true. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new bool ControlBox { get { return base.ControlBox; } set { base.ControlBox = value; } } /// /// Gets or sets the cursor that is displayed when the mouse pointer is over the control. /// /// /// /// A that represents the cursor to display when the mouse pointer is over the control. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override Cursor Cursor { get { return base.Cursor; } set { base.Cursor = value; } } /// /// Gets the data bindings for the control. /// /// /// /// A that contains the objects for the control. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new ControlBindingsCollection DataBindings { get { return base.DataBindings; } } /// /// Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent. /// /// /// /// One of the values. The default is . /// /// /// The value assigned is not one of the values. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override DockStyle Dock { get { return base.Dock; } set { base.Dock = value; } } /// /// Gets the dock padding settings for all edges of the control. /// /// /// /// A that represents the padding for all the edges of a docked control. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new ScrollableControl.DockPaddingEdges DockPadding { get { return base.DockPadding; } } /// /// Gets or sets a value indicating whether the control can respond to user interaction. /// /// /// true if the control can respond to user interaction; otherwise, false. The default is true. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(true)] public new bool Enabled { get { return base.Enabled; } set { base.Enabled = value; } } /// /// Gets or sets the font of the text displayed by the control. /// /// /// /// The to apply to the text displayed by the control. The default is the value of the property. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public override Font Font { get { return base.Font; } set { base.Font = value; } } /// /// Gets or sets the foreground color of the control. /// /// /// /// The foreground of the control. The default is the value of the property. /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override Color ForeColor { get { return base.ForeColor; } set { base.ForeColor = value; } } /// /// Gets or sets the border style of the form. /// /// /// /// A that represents the style of border to display for the form. The default is FormBorderStyle.Sizable. /// /// /// The value specified is outside the range of valid values. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public new FormBorderStyle FormBorderStyle { get { return base.FormBorderStyle; } set { base.FormBorderStyle = value; } } /// /// Gets or sets a value indicating whether a Help button should be displayed in the caption box of the form. /// /// /// true to display a Help button in the form's caption bar; otherwise, false. The default is false. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new bool HelpButton { get { return base.HelpButton; } set { base.HelpButton = value; } } /// /// Gets or sets the icon for the form. /// /// /// /// An that represents the icon for the form. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public new Icon Icon { get { return base.Icon; } set { base.Icon = value; } } /// /// Gets or sets the Input Method Editor (IME) mode of the control. /// /// /// /// One of the values. The default is . /// /// /// The assigned value is not one of the enumeration values. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new ImeMode ImeMode { get { return base.ImeMode; } set { base.ImeMode = value; } } /// /// Gets or sets a value indicating whether the form is a container for multiple-document interface (MDI) child forms. /// /// /// true if the form is a container for MDI child forms; otherwise, false. The default is false. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new bool IsMdiContainer { get { return base.IsMdiContainer; } set { base.IsMdiContainer = value; } } /// /// Gets or sets a value indicating whether the form will receive key events before the event is passed to the control that has focus. /// /// /// true if the form will receive all key events; false if the currently selected control on the form receives key events. The default is false. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new bool KeyPreview { get { return base.KeyPreview; } set { base.KeyPreview = value; } } /// /// Gets or sets the that represents the upper-left corner of the in screen coordinates. /// /// /// /// The that represents the upper-left corner of the in screen coordinates. /// [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new Point Location { get { return base.Location; } set { base.Location = value; } } /// /// Gets or sets the primary menu container for the form. /// /// /// /// A that represents the container for the menu structure of the form. The default is null. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new MenuStrip MainMenuStrip { get { return base.MainMenuStrip; } set { base.MainMenuStrip = value; } } /// /// Gets or sets the margin. /// /// The margin. [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new Padding Margin { get { return base.Margin; } set { base.Margin = value; } } /// /// Gets or sets a value indicating whether the Maximize button is displayed in the caption bar of the form. /// /// /// true to display a Maximize button for the form; otherwise, false. The default is true. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(false)] public new bool MaximizeBox { get { return base.MaximizeBox; } set { base.MaximizeBox = value; } } /// /// Gets the maximum size the form can be resized to. /// /// /// /// A that represents the maximum size for the form. /// /// /// The values of the height or width within the object are less than zero. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new Size MaximumSize { get { return base.MaximumSize; } set { base.MaximumSize = value; } } /// /// Gets or sets the that is displayed in the form. /// /// /// /// A that represents the menu to display in the form. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new MainMenu Menu { get { return base.Menu; } set { base.Menu = value; } } /// /// Gets or sets a value indicating whether the Minimize button is displayed in the caption bar of the form. /// /// /// true to display a Minimize button for the form; otherwise, false. The default is true. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(true)] public new bool MinimizeBox { get { return base.MinimizeBox; } set { base.MinimizeBox = value; } } /// /// Gets or sets the minimum size the form can be resized to. /// /// /// /// A that represents the minimum size for the form. /// /// /// The values of the height or width within the object are less than zero. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public new Size MinimumSize { get { return base.MinimumSize; } set { base.MinimumSize = value; } } /// /// Gets or sets the opacity level of the form. /// /// /// /// The level of opacity for the form. The default is 1.00. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced)] public new double Opacity { get { return base.Opacity; } set { base.Opacity = value; } } /// /// Gets or sets padding within the control. /// /// /// /// A representing the control's internal spacing characteristics. /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new Padding Padding { get { return base.Padding; } set { base.Padding = value; } } /// /// Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. /// /// /// /// One of the values. The default is . /// /// /// The assigned value is not one of the values. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override RightToLeft RightToLeft { get { return base.RightToLeft; } set { base.RightToLeft = value; } } /// /// Gets or sets a value indicating whether right-to-left mirror placement is turned on. /// /// /// true if right-to-left mirror placement is turned on; otherwise, false for standard child control placement. The default is false. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override bool RightToLeftLayout { get { return base.RightToLeftLayout; } set { base.RightToLeftLayout = value; } } /// /// Gets or sets a value indicating whether an icon is displayed in the caption bar of the form. /// /// /// true if the form displays an icon in the caption bar; otherwise, false. The default is true. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(false)] public new bool ShowIcon { get { return base.ShowIcon; } set { base.ShowIcon = value; } } /// /// Gets or sets a value indicating whether the form is displayed in the Windows taskbar. /// /// /// true to display the form in the Windows taskbar at run time; otherwise, false. The default is true. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(false)] public new bool ShowInTaskbar { get { return base.ShowInTaskbar; } set { base.ShowInTaskbar = value; } } /// /// Gets or sets the size of the form. /// /// /// /// A that represents the size of the form. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new Size Size { get { return base.Size; } set { base.Size = value; } } /// /// Gets or sets the style of the size grip to display in the lower-right corner of the form. /// /// /// /// A that represents the style of the size grip to display. The default is /// /// The value specified is outside the range of valid values. /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(typeof(SizeGripStyle), "Hide")] public new SizeGripStyle SizeGripStyle { get { return base.SizeGripStyle; } set { base.SizeGripStyle = value; } } /// /// Gets or sets the starting position of the form at run time. /// /// /// /// A that represents the starting position of the form. /// /// /// The value specified is outside the range of valid values. /// [DefaultValue(typeof(FormStartPosition), "CenterParent")] public new FormStartPosition StartPosition { get { return base.StartPosition; } set { base.StartPosition = value; } } /// /// Gets or sets a value indicating whether the user can give the focus to this control using the TAB key. /// /// true if the user can give the focus to the control using the TAB key; otherwise, false. The default is true. /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new bool TabStop { get { return base.TabStop; } set { base.TabStop = value; } } /// /// Gets or sets the object that contains data about the control. /// /// /// /// An that contains data about the control. The default is null. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new object Tag { get { return base.Tag; } set { base.Tag = value; } } /// /// Gets or sets the text associated with this control. /// /// The text associated with this control. [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public override string Text { get { return base.Text; } set { base.Text = value; } } /// /// Gets or sets a value indicating whether the form should be displayed as a topmost form. /// /// /// true to display the form as a topmost form; otherwise, false. The default is false. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new bool TopMost { get { return base.TopMost; } set { base.TopMost = value; } } /// /// Gets or sets the color that will represent transparent areas of the form. /// /// /// /// A that represents the color to display transparently on the form. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new Color TransparencyKey { get { return base.TransparencyKey; } set { base.TransparencyKey = value; } } /// /// Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls. /// /// /// true to use the wait cursor for the current control and all child controls; otherwise, false. The default is false. /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new bool UseWaitCursor { get { return base.UseWaitCursor; } set { base.UseWaitCursor = value; } } /// /// Gets or sets a value indicating whether the control and all its parent controls are displayed. /// /// /// true if the control and all its parent controls are displayed; otherwise, false. The default is true. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DefaultValue(false)] public new bool Visible { get { return base.Visible; } set { base.Visible = value; } } /// /// Gets or sets the form's window state. /// /// /// /// A that represents the window state of the form. The default is FormWindowState.Normal. /// /// /// The value specified is outside the range of valid values. /// /// /// /// /// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new FormWindowState WindowState { get { return base.WindowState; } set { base.WindowState = value; } } } }