Click here to Skip to main content
15,916,318 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFile reference in Visual Basic Pin
Razanust3-Dec-11 5:56
Razanust3-Dec-11 5:56 
AnswerRe: File reference in Visual Basic Pin
Eddy Vluggen3-Dec-11 6:32
professionalEddy Vluggen3-Dec-11 6:32 
GeneralRe: File reference in Visual Basic Pin
Simon_Whale3-Dec-11 12:03
Simon_Whale3-Dec-11 12:03 
QuestionNew to Visual Basic Pin
PoddyCo1-Dec-11 2:49
PoddyCo1-Dec-11 2:49 
AnswerRe: New to Visual Basic Pin
Richard MacCutchan1-Dec-11 3:18
mveRichard MacCutchan1-Dec-11 3:18 
AnswerRe: New to Visual Basic Pin
DaveAuld1-Dec-11 5:27
professionalDaveAuld1-Dec-11 5:27 
AnswerRe: New to Visual Basic Pin
JR2121-Dec-11 19:34
JR2121-Dec-11 19:34 
AnswerRe: New to Visual Basic Pin
coded0071-Dec-11 19:58
professionalcoded0071-Dec-11 19:58 
AnswerThanks people Pin
PoddyCo2-Dec-11 5:55
PoddyCo2-Dec-11 5:55 
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 

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.