msv6 Level: Trainee
 Registered: 02-10-2006 Posts: 1
|
Word 2000 - UserForm behavior
I want to create a UserForm (using VBA 6 with Word 2000) that mimics the behavior of Word's Cross-reference dialog. Is it possible? I want the dialog to stay on top of all Word docs, and still be able to move the documents around (i.e. NOT like a modal dialog).
To see what I mean, open Word. From the Insert menu, select Reference and then Cross-reference. Open another Word document. Click on the older document, then the newer, then the dialog
Notice how the dialog stays on top of all Word documents, and doesn't bring its original parent to the front when you drag it around, and doesn't disappear when you minimize one of the documents. You can even kill its original parent and it won't go away.
I've tried using SetWindowPos and similar functions to set the z-order of the form, but the form gets sent to the back as soon as you activate a non-parent document.
Any ideas? Thanks!!
-msv6
|