Click here to Skip to main content
15,895,084 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: New to Visual Basic Pin
elgaabeb9-Dec-11 4:03
elgaabeb9-Dec-11 4:03 
AnswerRe: New to Visual Basic Pin
daveh604517-Jan-12 23:35
daveh604517-Jan-12 23:35 
QuestionLoading a text document in vb.net Pin
waner michaud30-Nov-11 9:20
waner michaud30-Nov-11 9:20 
AnswerRe: Loading a text document in vb.net Pin
Richard MacCutchan30-Nov-11 11:52
mveRichard MacCutchan30-Nov-11 11:52 
AnswerRe: Loading a text document in vb.net Pin
ekolis30-Nov-11 14:04
ekolis30-Nov-11 14:04 
AnswerRe: Loading a text document in vb.net Pin
coded00730-Nov-11 23:58
professionalcoded00730-Nov-11 23:58 
AnswerRe: Loading a text document in vb.net Pin
Dave Kreskowiak1-Dec-11 4:06
mveDave Kreskowiak1-Dec-11 4:06 
GeneralRe: Loading a text document in vb.net Pin
waner michaud1-Dec-11 6:20
waner michaud1-Dec-11 6:20 
Thanks lot guys I got it to display into a richtextbox. But this is not I want to accomplish..
Instead of using a text file, i rather like to use a word document..

Ok now i have this scenerio:

I load a word doc using the following code:

Dim MSWord As New Microsoft.Office.Interop.Word.Application
Dim WordDoc As New Microsoft.Office.Interop.Word.Document
WordDoc = MSWord.Documents.Open("E:\Manual.doc")
MSWord.WindowState = Microsoft.Office.Interop.Word.WdWindowState.wdWindowStateMinimize
MSWord.Visible = True

Document loads fine...

However, when I click X from word to close the application, got a message saying that

1) file is being used by another application or user
when X or OK...
2) Ask to save as
click cancel the document is now closed
click X to close the word application
3) changes have been made, do you want to save...
click NO...it is now the word app is closed.


I want to close ms word application without having to go thru the three warnings mentioned above.

I am doing this to load a user manual as word document for a small application in vb.net.
On the main menu, have help button that will load this word doc as a manual..

Also, I want this document to be on read only mode so that user cannot edit the document.

Your guidance is very well appreciated..

Thanks in advance.........
GeneralRe: Loading a text document in vb.net Pin
Richard MacCutchan1-Dec-11 6:40
mveRichard MacCutchan1-Dec-11 6:40 
Questionsome problems on databindings with entity framework Pin
alejx26-Nov-11 12:52
alejx26-Nov-11 12:52 
QuestionCombobox checkbox.... Pin
Noctaire25-Nov-11 8:12
Noctaire25-Nov-11 8:12 
AnswerRe: Combobox checkbox.... Pin
thatraja25-Nov-11 17:12
professionalthatraja25-Nov-11 17:12 
AnswerRe: Combobox checkbox.... Pin
Eddy Vluggen26-Nov-11 6:12
professionalEddy Vluggen26-Nov-11 6:12 
QuestionVishual Basic User Control Pin
softindika198224-Nov-11 23:55
softindika198224-Nov-11 23:55 
AnswerRe: Vishual Basic User Control Pin
Eddy Vluggen26-Nov-11 6:09
professionalEddy Vluggen26-Nov-11 6:09 
QuestionVishual Basic 6 Pin
softindika198224-Nov-11 23:23
softindika198224-Nov-11 23:23 
AnswerRe: Vishual Basic 6 Pin
RobCroll27-Nov-11 16:42
RobCroll27-Nov-11 16:42 
Questionpicture of boxes on conveyor band. Pin
aykut canturk24-Nov-11 10:09
aykut canturk24-Nov-11 10:09 
AnswerRe: picture of boxes on conveyor band. Pin
Eddy Vluggen26-Nov-11 6:22
professionalEddy Vluggen26-Nov-11 6:22 
Questionteach me Pin
jeneva ivil ybiosa23-Nov-11 14:14
jeneva ivil ybiosa23-Nov-11 14:14 
AnswerRe: teach me Pin
thatraja23-Nov-11 17:30
professionalthatraja23-Nov-11 17:30 
QuestionPrint a graphic in Zebra Pin
Robson Moro Aioffi23-Nov-11 6:01
Robson Moro Aioffi23-Nov-11 6:01 
AnswerRe: Print a graphic in Zebra Pin
thatraja28-Nov-11 18:57
professionalthatraja28-Nov-11 18:57 
QuestionZedGraph Color Rotate Pin
Nikhil S Patil22-Nov-11 15:43
Nikhil S Patil22-Nov-11 15:43 
QuestionDataRow and DataRowView (Difference & Function) Pin
Framework .l.21-Nov-11 15:10
Framework .l.21-Nov-11 15:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.