System.Windows.Forms.RichTextBox.DetectUrls Property

Gets or sets a value indicating whether or not the System.Windows.Forms.RichTextBox will automatically format a Uniform Resource Locator (URL) when it is typed into the control.

Syntax

[System.ComponentModel.DefaultValue(true)]
public bool DetectUrls { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If this property is set to true, any text entered into the control that is determined by the System.Windows.Forms.RichTextBox to be a URL is automatically formatted as a link. You can create an event handler for the RichTextBox.LinkClicked event to handle all links clicked in the control. The System.Windows.Forms.LinkClickedEventArgs that is provided to the event handler for the RichTextBox.LinkClicked event provides data that enables you to determine which link was clicked in the control in order to process the link.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0