HeaderPane
Main
Hide
Share Link
Print

AutoAdvance Property, SftDate Object

Defines whether a completely typed part moves on to the next part.

Syntax

Get

C#bool Boolean = object.AutoAdvance;
VB.NETBoolean = object.AutoAdvance As Boolean
C++VARIANT_BOOL Boolean = object->AutoAdvance;
VARIANT_BOOL Boolean = object->GetAutoAdvance();
CHRESULT object->get_AutoAdvance(VARIANT_BOOL* Boolean);

Put

C#bool object.AutoAdvance = Boolean;
VB.NETobject.AutoAdvance = Boolean As Boolean
C++VARIANT_BOOL object->AutoAdvance = Boolean;
void object->PutAutoAdvance(VARIANT_BOOL Boolean);
CHRESULT object->put_AutoAdvance(VARIANT_BOOL Boolean);

object

A SftDate object.

Boolean

Defines whether a completely typed part moves on to the next part.

Comments

The AutoAdvance property defines whether a date field control moves to the next part (day, month, year, ...) once the user has typed a part completely, for example two digits of a month. The default is True. p Without automatic advance, the user moves between parts using the arrow keys, Tab or the separator characters. The setting applies to segment editing (EditStyle).

Examples

C# View entire sample code

            comboFirstDay.SelectedIndex = (int)cal.FirstDayOfWeek;
            comboViews.Items.AddRange(new object[] { "All", "Month and year", "Month only" });
            comboViews.SelectedIndex = Math.Max(0, Array.IndexOf(viewSets, cal.AllowedViews));
            checkTrailing.Checked = cal.ShowTrailingDates;
            checkTodayButton.Checked = cal.ShowTodayButton;
            checkHighlightToday.Checked = cal.HighlightToday;
            checkClearButton.Checked = cal.ShowClearButton;
            checkDropOnFocus.Checked = fieldDate.DropOnFocus;
            checkAutoAdvance.Checked = fieldDate.AutoAdvance;
            checkThemes.Checked = sftCalendar.UseThemes;

            initialized = true;
            ShowSelection();
            DoLayout();
        }

VB.NET View entire sample code

        comboFirstDay.SelectedIndex = CInt(cal.FirstDayOfWeek)
        comboViews.Items.AddRange(New Object() {"All", "Month and year", "Month only"})
        comboViews.SelectedIndex = Math.Max(0, Array.IndexOf(viewSets, cal.AllowedViews))
        checkTrailing.Checked = cal.ShowTrailingDates
        checkTodayButton.Checked = cal.ShowTodayButton
        checkHighlightToday.Checked = cal.HighlightToday
        checkClearButton.Checked = cal.ShowClearButton
        checkDropOnFocus.Checked = fieldDate.DropOnFocus
        checkAutoAdvance.Checked = fieldDate.AutoAdvance
        checkThemes.Checked = sftCalendar.UseThemes

        initialized = True
        ShowSelection()
        DoLayout()
    End Sub

C++ View entire sample code

        break;
     }
    case IDC_DROPONFOCUS:
        for (int i = 0; i < FIELDS; ++i)
            m_Fields[i]->DropOnFocus = vbChecked;
        break;
    case IDC_AUTOADVANCE:
        for (int i = 0; i < FIELDS; ++i)
            m_Fields[i]->AutoAdvance = vbChecked;
        break;
    case IDC_COLORS:
        for (UINT ctlId = IDC_DATE; ctlId <= IDC_CALENDAR; ++ctlId)
            SetColorScheme(ctlId, fChecked);
        break;
    case IDC_THEMES:
        ForEachControl([&](auto& ctl) { ctl->UseThemes = vbChecked; });

See Also SftDate Object | Object Hierarchy | Editing


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.