Unicode Controls & Classes for VB6 - Version 4

ctlUniRichTextBoxXP.LoadFile Function

Loads an rtf file or text file into a RichTextBox control (also Unicode or UTF8)

Syntax
Public Function LoadFile (ByVal bstrFilename As String, _
ByVal bResetText As Boolean, _
Optional ByVal iEncoding As eFileEncoding = -1&, _
Optional ByVal bReadBOM As Boolean = True) As Boolean
Parameters
Parameter Description
ByVal bstrFilename As String The filename
ByVal bResetText As Boolean True for clearing the control before, False to add the text to the current position
Optional ByVal iEncoding As eFileEncoding = -1& File encoding, leave -1& for auto
Optional ByVal bReadBOM As Boolean = True True for reading the BOM marker in the file, False to use the iEncoding param for the encoding
Remarks