Skip to content

ShowDay Method

Description

Used to show a specific day in the calendar view.

Syntax

Public Sub ShowDay( _
    ByVal [Day](#) As Date, _
    Optional ByVal [Select](#) As Boolean = True _
)

Parameters

  • Day
    [in] Date\DteTime object specifying the date to show in the current view.

  • Select
    [in] True to select/highlight the date after showing the date. False to show the date, but not select it.

Remarks

When in Day or WorkWeek view, ShowDay will show only the specified day in the calendar view. When in Week or Month view, ShowDay will ensure that the provided date is visible and selected if desired.

Example

ShowDay Sample (Visual Basic)
This sample illustrates how to show a date in both day view and month view.

Dim d As Date  
d = #10/10/2004#  

' Show a date in Day view  
CalendarControl.DayView.ShowDay d, True  

' Show a date in Month View  
CalendarControl.ViewType = xtpCalendarMonthView  
CalendarControl.MonthView.ShowDay d, False  

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.