ComponentOne True DBInput Pro 8.0
DropOpen Event (TDBDate)

 

Reference> TDBDate Control> TDBDate Control Events> DropOpen Event (TDBDate)

DropOpen Event (TDBDate)

The DropOpen event occurs just before the object is displayed. When the NoDefault parameter is set to False (Default), the object provided by the control will be used. When creating a user-defined object, such as the TDBCalendar control, set the NoDefault parameter to True. This will prevent the control's calendar from being displayed.

Syntax

control_DropOpen (NoDefault As Boolean)

Arguments

NoDefault is a Boolean that determines whether to hide the drop-down calendar, calculator, or text entry window.

The possible values for the NoDefault parameter are as follows:

True - Hides the drop-down object.

False - The drop-down object provided in the control will be used. (Default)

Remarks

When displaying the object, whatever value is in the editing area will appear as the current date in the object. However, a Null value or an invalid value (incomplete) will point at the current system date.

Notes

This event can be fired when the user clicks on the drop-down button, or presses the Alt+Down keys or the keys defined in the Key object's DropDown property. You can also invoke this event by calling the Drop method.

Please avoid popping up a message box in this event. If you do, you may experience unexpected results.

See Also

Calendar Object

Key Object

Drop Method (TDBDate)

CloseUp Event (TDBDate)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback