Version

SpinButtonDisplayStyle Property (UltraDateTimeEditor)

Gets/sets the display style for the control's spin buttons.
Syntax
'Declaration
 
Public Property SpinButtonDisplayStyle As Infragistics.Win.ButtonDisplayStyle
public Infragistics.Win.ButtonDisplayStyle SpinButtonDisplayStyle {get; set;}
Remarks

The UltraDateTimeEditor control provides the ability to control whether (and how) the spin buttons are displayed.

When set to Always (default), the spin buttons are always displayed.

When set to Never, the spin buttons are never displayed.

When set to OnMouseEnter, the spin buttons are displayed when the cursor passes into the boundaries of the control, and hidden when it passes outside.

Example
This example sets up the spin buttons to appear on the left side of the control.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinEditors

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        '	Set up the spin buttons to appear on the left side of the control
        Me.UltraDateTimeEditor1.SpinButtonAlignment = ButtonAlignment.Left
        Me.UltraDateTimeEditor1.SpinButtonDisplayStyle = ButtonDisplayStyle.Always

        '	Force an immediate repaint of the control by calling the main
        '	UIElement's DirtyChildElements method, specifying true for the
        '	'invalidate' parameter
        Me.UltraDateTimeEditor1.UIElement.DirtyChildElements(True)
    End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinEditors;

		private void button1_Click(object sender, System.EventArgs e)
		{
			//	Set up the spin buttons to appear on the left side of the control
			this.ultraDateTimeEditor1.SpinButtonAlignment = ButtonAlignment.Left;
			this.ultraDateTimeEditor1.SpinButtonDisplayStyle = ButtonDisplayStyle.Always;

			//	Force an immediate repaint of the control by calling the main
			//	UIElement's DirtyChildElements method, specifying true for the
			//	'invalidate' parameter
			this.ultraDateTimeEditor1.UIElement.DirtyChildElements( true );
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also