VB SCRIPT HELP

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
ugly-nerd





Posts: 23
Joined: Sat May 21, 2005 6:51 am

VB SCRIPT HELP

Post by ugly-nerd »

Code: Select all

    Dim sFile As String


   With dlgCommonDialog
       .DialogTitle = "Open"
       .CancelError = False
       'ToDo: set the flags and attributes of the common dialog control
       .Filter = "All Files (*.*)|*.*"
       .ShowOpen
       If Len(.FileName) = 0 Then
           Exit Sub
       End If
       sFile = .FileName
   End With
   'ToDo: add code to process the opened file
How do I finish that code/script so that it loads a ANSI encoded file into a RichTextBox?

Someone help please. Thanks!
Post Reply