R
Rob
I have been developing an addin for Word that coincides with one of our
companies applications. In part of our code, we allow the user to open
a document in Word (from our own application). Within the new Word that
has opened, we override the save button so that a custom modal dialog
pops up with a few choices for the user. The problem that I encounter
is that when dragging the dialog, it overpaints Microsoft Word (MS Word
is not refreshing). I have tried to lock the dialog so that it is not
movable, but that does not work (the dialog is still able to be moved).
Also, I have experimented with making the dialog non modal, but that
seems to lock up the dialog completely such that it doesn't respond and
won't display any text. My next thought was to set the parent of the
dialog to the Word Application or Window, but I can't seem to figure
out this cast (Word.Window to Forms.IFormsWindow).
Does anyone have any ideas?
Thanks,
Rob Heinen
companies applications. In part of our code, we allow the user to open
a document in Word (from our own application). Within the new Word that
has opened, we override the save button so that a custom modal dialog
pops up with a few choices for the user. The problem that I encounter
is that when dragging the dialog, it overpaints Microsoft Word (MS Word
is not refreshing). I have tried to lock the dialog so that it is not
movable, but that does not work (the dialog is still able to be moved).
Also, I have experimented with making the dialog non modal, but that
seems to lock up the dialog completely such that it doesn't respond and
won't display any text. My next thought was to set the parent of the
dialog to the Word Application or Window, but I can't seem to figure
out this cast (Word.Window to Forms.IFormsWindow).
Does anyone have any ideas?
Thanks,
Rob Heinen