Docking a dialog in Word XP

A

Alex

Hello.

I am trying to make a dialog that I display from an add-in (actually a C# Windows Form, but that's not really important) to behave in a manner similar to the task pane. That is, dock to the border of the Word window and adjust the size of the document window to fit.

I tried playing with the ActiveWindow.Width property but that changes the size of main Word window, not the document.

Any ideas?


Best wishes,
Alex.
 
P

Peter Huang [MSFT]

Hi Alex,

Based on my knowledge, so far the Word XP did not support such feature.
Because the word has its internal implement, our customization is using the
Object Modal via Addin or VBA.
Unfortunately the Object Modal did not expose such feature for us to do
more customization.

From Office 2003, we can develop our own taskpane with VSTO v2 shipped with
Whidbey.
What is the Actions Pane?
http://blogs.msdn.com/vsto2/search.aspx?q=task+pane&p=1

Hope this helps.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
C

Cindy M -WordMVP-

Hi Alex,

I'm not certain a 100% satisfactory resolution was ever found, and at the time
I was so busy with other projects that I couldn't follow the discussion in
detail, but...

A year or so ago, I think it was, there was a discussion in one of the word.vba
newsgroups (.general, probably) about exactly this question. And I believe
someone came up with an answer that had to do with using the Windows API. You
might try a google search of the word.vba groups and see what you turn up.
I am trying to make a dialog that I display from an add-in (actually a C#
Windows Form, but that's not really important) to behave in a manner similar to
the task pane. That is, dock to the border of the Word window and adjust the
size of the document window to fit.
I tried playing with the ActiveWindow.Width property but that changes the
size of main Word window, not the document.
Any ideas?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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