Set the Enabled property of the TabPage to true or false. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. By default, this vertical display results in a poor user experience, because the Text property of the TabPage object does not display in the tab when visual styles are enabled.
There is also no direct way to control the direction of the text within the tab. You can use owner draw on TabControl to improve this experience. The following procedure shows how to render right-aligned tabs, with the tab text running from left to right, by using the "owner draw" feature. Add a TabControl to your form. Set the Alignment property to Right.
Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem.
Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid. Related Questions. Vertical tab control in WinForms. How to make vertical tabs in tab control window application.
Raises the Enter event. Raises the FontChanged event. Raises the ForeColorChanged event. Raises the GiveFeedback event. Raises the GotFocus event. Raises the HandleDestroyed event. Raises the HelpRequested event. Raises the ImeModeChanged event. Raises the Invalidated event. Raises the KeyDown event.
Raises the KeyPress event. Raises the KeyUp event. Raises the Layout event. Raises the Leave event of the TabControl. Raises the Leave event. Raises the LocationChanged event. Raises the LostFocus event. Raises the MarginChanged event. Raises the MouseCaptureChanged event. Raises the MouseClick event. Raises the MouseDoubleClick event. Raises the MouseDown event. Raises the MouseEnter event. Raises the MouseHover event. Raises the MouseLeave event.
Raises the MouseMove event. Raises the MouseUp event. Raises the MouseWheel event. Raises the Move event. Raises the PaddingChanged event. Raises the Paint event. Raises the BackColorChanged event when the BackColor property value of the control's container changes. Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes. Raises the BindingContextChanged event when the BindingContext property value of the control's container changes. Raises the ParentChanged event.
Raises the EnabledChanged event when the Enabled property value of the control's container changes. Raises the FontChanged event when the Font property value of the control's container changes. Raises the ForeColorChanged event when the ForeColor property value of the control's container changes. Raises the VisibleChanged event when the Visible property value of the control's container changes. Raises the PreviewKeyDown event. Raises the QueryContinueDrag event. Raises the RegionChanged event.
This member overrides OnResize EventArgs. Raises the RightToLeftChanged event. Raises the Selected event. Raises the SelectedIndexChanged event. Raises the Selecting event. Raises the SizeChanged event. Raises the SystemColorsChanged event.
Raises the TabIndexChanged event. Raises the TabStopChanged event. Raises the TextChanged event. Raises the Validated event. Raises the Validating event. Raises the VisibleChanged event.
Forces the control to invalidate its client area and immediately redraw itself and any child controls. Resets the BackColor property to its default value.
Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values. Resets the Cursor property to its default value. Resets the Font property to its default value. Resets the ForeColor property to its default value. Resets the ImeMode property to its default value. Resets the control to handle the MouseLeave event. Resets the RightToLeft property to its default value.
Resets the Text property to its default value Empty. Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. This member overrides ScaleCore Single, Single. Activates a child control. Optionally specifies the direction in the tab order to select the control from.
Makes the specified TabPage the current tab. Sets a value indicating how a control will behave when its AutoSize property is enabled. Sets a specified ControlStyles flag to either true or false. Returns a string that represents the TabControl control. This API supports the product infrastructure and is not intended to be used directly from your code. This member overrides WndProc Message.
Occurs when the value of the BackgroundImage property changes. Occurs when the value of the BackgroundImageLayout property changes. Occurs when the BackgroundImageLayout property changes. Occurs when the value of the BindingContext property changes. Occurs when the value of the CausesValidation property changes. Occurs when the value of the ClientSize property changes.
Occurs when the value of the ContextMenu property changes. Occurs when the value of the ContextMenuStrip property changes.
Occurs when a new control is added to the Control. Occurs when a control is removed from the Control. Occurs when the value of the Cursor property changes. Occurs when the component is disposed by a call to the Dispose method. Occurs when the value of the Dock property changes.
Occurs when the DPI setting for a control is changed programmatically after the DPI of its parent control or form has changed. Occurs when the DPI setting for a control is changed programmatically before a DPI change event for its parent control or form has occurred. Occurs when the Enabled property value has changed.
Occurs when the Font property value changes. Occurs when the value of the ForeColor property changes. Occurs when the ImeMode property has changed. Occurs when the Location property value has changed. Occurs when the Parent property value changes. Occurs before the KeyDown event when a key is pressed while focus is on this control. Occurs when AccessibleObject is providing help to accessibility applications.
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. Occurs when the value of the Region property changes.
Occurs when the RightToLeft property value changes. Occurs when the value of the RightToLeftLayout property changes. Occurs when the SelectedIndex property has changed. Occurs when the Size property value changes. Occurs when the TabIndex property value changes. Occurs when the TabStop property value changes.
Occurs when the value of the Text property changes. Occurs when the Visible property value changes. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Tab Control Class Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback? Namespace: System. Forms Assembly: System. Manages a related set of tab pages.
In this article. Inherited from Control. Gets or sets the description of the control used by accessibility client applications. Gets or sets the name of the control used by accessibility client applications.
Gets or sets the accessible role of the control. Gets or sets the area of the control for example, along the top where the tabs are aligned. Gets or sets a value indicating whether the control can accept data that the user drags onto it.
This property is not relevant for this class. Gets a value indicating whether the control can receive focus. Determines if events can be raised on the control. Gets a value indicating whether the control can be selected. Gets or sets a value indicating whether the control has captured the mouse. Gets the rectangle that represents the client area of the control.
0コメント