CaptchaTextBoxProperties.Visible Property

Gets or sets a value specifying the visibility of the captcha control's text box.

Namespace: DevExpress.Web.Captcha

Assembly: DevExpress.Web.v20.1.dll

Declaration

[DefaultValue(true)]
public bool Visible { get; set; }
<DefaultValue(True)>
Public Property Visible As Boolean

Property Value

Type Default Description
Boolean

true

true if the text box is visible; otherwise false.

Examples

The following part of the ASPxCaptcha - Custom Appearance online demo illustrates how to implement a captcha control with a custom appearance.

In this example, the control's Refresh Button.ASPxCaptcha and Text Box.ASPxCaptcha are hidden, and their functionaliry is implemented in a custom manner using separate controls (the IMG element, ASPxLabel, ASPxTextBox).

function GetRefreshButton() {
    return document.getElementById("refreshButton");
}        

function OnCaptchaBeginCallback(s, e) {
    var refreshButton = GetRefreshButton();
    refreshButton.src = "Images/refreshButtonAnimated.gif";
}

function OnCaptchaEndCallback(s, e) {
    var refreshButton = GetRefreshButton();
    refreshButton.src = "Images/refreshButton.gif"; 
    tbCode.SetValue("");
...   
}
See Also