R
Robert Jacobson
Hi,
I'm developing a Microsoft Word add-in using VB.Net. It contains a custom
non-modal dialog box, built from a Windows Form. The form should float
above the active document in Word, similar to the behavior of the Find and
Replace dialog in Word.
In VB.Net, this can be achieved by setting the floating form's Owner
property to the lower form:
Dim Form as New Form2
Form.Owner = Me
Form.Show()
However, this doesn't work here since the "owner" is a Microsoft Word
window, rather than a .Net Windows Form. Also, I can't just use the
..TopMost property for my form, because that will cause it to float above
_every_ window on the screen (including other applications.)
Is there a way (probably through an API call) to make my form float above
the active Microsoft Word document, but not other documents or applications?
Thanks,
Robert Jacobson
I'm developing a Microsoft Word add-in using VB.Net. It contains a custom
non-modal dialog box, built from a Windows Form. The form should float
above the active document in Word, similar to the behavior of the Find and
Replace dialog in Word.
In VB.Net, this can be achieved by setting the floating form's Owner
property to the lower form:
Dim Form as New Form2
Form.Owner = Me
Form.Show()
However, this doesn't work here since the "owner" is a Microsoft Word
window, rather than a .Net Windows Form. Also, I can't just use the
..TopMost property for my form, because that will cause it to float above
_every_ window on the screen (including other applications.)
Is there a way (probably through an API call) to make my form float above
the active Microsoft Word document, but not other documents or applications?
Thanks,
Robert Jacobson