Basic Date Picker Documentation

BasicDatePicker.OpenCalendarOnTextBoxFocus Property

If focus is placed on TextBox, then open calendar.

[Visual Basic]
Public Property OpenCalendarOnTextBoxFocus As Boolean
[C#]
public bool OpenCalendarOnTextBoxFocus {get; set;}

Property Value

A boolean value that specifies whether to open calendar when focus is placed on the TextBox. The default value is false.

Example

[Visual Basic, C#] The following example demonstrates how to use the OpenCalendarOnTextBoxFocus property. When a focus is placed on the TextBox, the calendar will open.

 [Visual Basic]
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<%@ Page Language="VB" AutoEventWireup="true" %>
<html>
    <head>
        <title>Basic Date Picker OpenCalendarOnTextBoxFocus Example</title>
    </head>
    <body>
        <form runat="server">
            <h3>Basic Date Picker OpenCalendarOnTextBoxFocus Example</h3>
            <bdp:BasicDatePicker 
                ID="BasicDatePicker1"
                runat="server"
                OpenCalendarOnTextBoxFocus="true">
            </bdp:BasicDatePicker>
        </form>
    </body>
</html>
 
 [C#]
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<%@ Page Language="C#" AutoEventWireup="true" debug="true"%>
<html>
    <head>
        <title>Basic Date Picker OpenCalendarOnTextBoxFocus Example</title>
    </head>
    <body>
        <form runat="server">
            <h3>Basic Date Picker OpenCalendarOnTextBoxFocus Example</h3>
            <bdp:BasicDatePicker 
                ID="BasicDatePicker1"
                runat="server"
                OpenCalendarOnTextBoxFocus="true">
            </bdp:BasicDatePicker>
        </form>
    </body>
</html>
 

See Also

BasicDatePicker Class | BasicFrame.WebControls Namespace | DatePickerDisplayType