Dim wordApp As New Word.ApplicationClass()
' Input box is used to get the path of the file which ahas to be uploaded into textbox.
Dim filePath As String = inputbox.Value
Dim file As Object = filePath
Dim nullobj As Object = System.Reflection.Missing.Value
' here on Document.Open there should be 9 arg.
Dim doc As Word.Document = wordApp.Documents.Open(file, nullobj, nullobj, nullobj, nullobj, nullobj, _
nullobj, nullobj, nullobj, nullobj, nullobj, nullobj)
' Here the word content is copeied into a string which helps to store it into textbox.
Dim doc1 As Word.Document = wordApp.ActiveDocument
Dim m_Content As String = doc1.Content.Text
' the content is stored into the textbox.
m_Textbox.Text = m_Content
doc.Close(nullobj, nullobj, nullobj)