title: Display files on Microsoft WebBrowser /Windows forms web browser
body: <p>I am using <code>windows forms web browser</code> control in my forms application and having issues with displaying <code>.doc</code> or <code>.docx</code> file. </p>
  
  <p>All the pdf files seems to work fine but when I select word file it comes up with file down load dialog with open, save and cancel options.</p>
  
  <p>The code I am using here is </p>
  
  <pre><code>  Try
          If (dlgOpen.ShowDialog() = DialogResult.OK) Then
              If (File.Exists(dlgOpen.FileName)) Then
                   wbPreview.Navigate(dlgOpen.FileName)
              End If
          End If
    Catch ex As Exception
          MsgBox(ex.Message, MsgBoxStyle.Critical)
    End Try
  </code></pre>
  
  <p>Then I tried using <code>Microsoft WebBrowser</code> control as describes in <a href="http://support.microsoft.com/kb/304643" rel="nofollow">How to use the WebBrowser control in Visual Basic to open an Office document</a> where I ended up with the same issue.
  Any ides of working this out?</p>