Hi guys,
Is there any problem having 2 Form controls reading from the same file?
I have a webbrowser and a textbox both reading from the same file but only the textBox displays the file contents.
I tried commenting the textbox statement and now the webbrowser was reading the file.
Any help is welcome,Code:pjDir = Form1.FBDialog.SelectedPath If My.Computer.FileSystem.FileExists(pjDir & "/index.html") Then Form1.RichTextBox1.Text = My.Computer.FileSystem.ReadAllText(pjDir & "/index.html") Form1.WebBrowser1.DocumentText = My.Computer.FileSystem.ReadAllText(pjDir & "/index.html") End If
Mike




Reply With Quote