See Also

RichTextBox Class  | RichTextBox Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

Clear Method

Clears the content of the RichTextBox control.

[Visual Basic]
Public Sub Clear()
[C#]
public void Clear();

Example

[C#] 

private void ghCustomerID_Format(object sender, System.EventArgs eArgs) 

    //Clears the content of the RichTextBox 
    this.rtf.Clear();  
    //Loads the specified file into the RTF control 
    this.rtf.LoadFile(System.Windows.Forms.Application.StartupPath + " \\Letter.rtf");  
}

[Visual Basic] 

Private Sub ghCustomerID_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles ghCustomerID.Format
    'Clears the content of the RichTextBox
    Me.rtf.Clear()
    'Loads the specified file into the RTF control
    Me.rtf.LoadFile(Application.StartupPath + " \Letter.rtf")
End Sub

See Also

RichTextBox Class  | RichTextBox Members

 

 


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