I am trying to save and open webpages in my browser. Here is the code that i am using and getting errors with:

VB Code:
  1. Private Sub mnuOpen_Click()
  2.     Me.dlg1.Filter = "HTML Files (*.html)|*.html; HTM Files (*.htm)|*.htm; PHP Files (*.php)|*.php; ASP Files (*.asp)|*.asp; SHTML Files (*.shtml)|*.shtml; CGI Files (*.cgi)|*.cgi"
  3.     dlg1.ShowOpen
  4.     brwWebBrowser.Navigate Me.dlg1.filename
  5. End Sub
Error:
Code:
When the common dialog box opens, the file types are not dislaying correctly
VB Code:
  1. Private Sub mnuSaveAs_Click()
  2.     Me.dlg1.Filter = "HTML Files (*.html)|*.html; HTM Files (*.htm)|*.htm; PHP Files (*.php)|*.php; ASP Files (*.asp)|*.asp; SHTML Files (*.shtml)|*.shtml; CGI Files (*.cgi)|*.cgi"
  3.     dlg1.ShowSave
  4.     brwWebBrowser.Document Me.dlg1.filename
  5. End Sub
Error:
Code:
Compile Error: Invaid Use of Propery

    brwWebBrowser.Document Me.dlg1.filename
is highlited