word vsto 2003, non-modal form & windowstate

B

burn1down_2k

Hi,

I have spawned a non modal from from a vsto 2003 codebehind. For the
most part I have gotten it to work just like the help contact us page
that pops up tiled against the word application. With the contact us
page as soon as u move the contact page from its tiled position, it
immediately wdWindowStateMaximize word.

I have attempted to get it work like this with no luck.. First i tested
my 2 lines of code from a button on my modal form and it worked fine,
so i figured i could just fire this code from the location changed
event of the form.

wordDocument.ThisApplication.Activate()
wordDocument.ThisApplication.WindowState =
Word.WdWindowState.wdWindowStateMaximize

Now if i put a messagebox inside of the LocationChanged event with this
code it works fine, but it only works when i pop up a message box..

ps. i have also tried the move event.
 

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