borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (How to sum by macro)Next Topic (Aligning text in cells) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Word 2000 - UserForm behavior
Poster Message
msv6
Level: Trainee

Registered: 02-10-2006
Posts: 1

icon 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

02-10-2006 at 08:56 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Word 2000 - UserForm behavior
Previous Topic (How to sum by macro)Next Topic (Aligning text in cells) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder