Word control focus issue

Sep 5 2005 11:34 PM
I have an application which can load ms word documents and save them. The application has a main form with a file menu, an edit menu and a tool bar. I have a DocumentControl(usercontrol) defined which handles loading the word document into itself. The flow of events are as follows: Main Form -> New -> Creates an instance of DocumentControl -> Loads Word document into DocumentControl (by passing itself as a window handle). The new document loads into the DocumentControl and I am able to see the word document and play with it. The issue is that when I click on the DocumentControl window, I lose focus on the main form. This is a problem because when I select some text in the word document, and I go to Edit Menu to do some operation, I lose focus on the DocumentControl window (and so the text gets dehighlighted). The Word.Window (which holds the Word.Document) needs to be associated with the main form. So, can anyone please let me know how to load the document in a new window but not lose focus from the main form? Thanks a lot.