Word not maximizing

A

Alan

I am using the WebBrowser (in its own form) to view a Word document in my VB6
program. It does exactly what I want except for one minor irritation.

In the WebBrowser NavigateComplete2 event I am storing the user's Word settings
which are then restored on Form_Unload. This works fine except that something
is setting the Word 'windowstate' to normal and not maximized. What I mean is:
if I open the Word document normally (ie through Word and outside of my VB app),
maximize the window, close Word and reopen the Word document (again normally,
through Word and outside of my VB app) the Word window is still maximized -
which is correct. However, if I view the Word document via my VB app and then
open any Word document normally (ie through Word and outside of my VB app) the
Word window is not maximized - which is a *very* minor irritation but I don't
want my VB app to interfere with any of the user's Word settings.

I hope I have explained my problem clearly and hope that someone can help.

TIA
Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top