See Also

RichTextBox Class  | RichTextBox Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

Find Method

Searches for text in the content of the RichTextBox control.

Overload List

Searches the text of a RichTextBox control for the first instance of a character from a list of characters.
Searches the text of the RichTextBox control for a string.
Searches the text in the RichTextBox control for a specified string starting at a specified location.
Searches the text in the RichTextBox control for a specified string starting at a specified location and with specific options applied to the search.

Example

[C#] 

Private void Detail_Format(object sender, System.EventArgs eArgs) 

    If (this.RichTextBox1.Find("past due")!= -1) 
    { 
        this.txtPayNow.Visible=True; 
    } 
    Else 
    { 
        this.txtPayNow.Visible=False; 
    } 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
    If Not Me.RichTextBox1.Find("past due") = -1 Then
        Me.txtPayNow.Visible = True
    Else
        Me.txtPayNow.Visible = False
    End If
End Sub

See Also

RichTextBox Class  | RichTextBox Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.