Skip to content

ShowModal Method

Description

Displays a Date Picker control as a modal dialog with a specific number of month rows and columns.

Syntax

Public Function ShowModal( _
    ByVal nRows As Long, _
    ByVal nCols As Long _
) As Boolean

Parameters

  • nRows: Number of months to display vertically.
  • nCols: Number of months to display horizontally.

Return Type

Returns True if the Date Picker modal window was successfully displayed, False otherwise.

Remarks

The ShowModal method will display the Date Picker as a modal window. The Date Picker will stay visible until it is clicked on or an area outside the Date Picker control is clicked on.

With the ShowModal method, the Date Picker control will be displayed using the Top and Left properties to position the top left corner of the control. The ShowModalEx method can be used to specify the location and width/height of the Date Picker.

See Also


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