problem when moving custom dialog after showdialog

X

Xavier

I develop in c# an exe with word 2003 pia
I create a CommandBarButton and when I click pn my button, I create a custon
dialog
I use ShowDialog (with handle word or not)
When I move my dialog, Word doesn't paint the document.
I also try modeless dialog with Show but Word and my appli do not response

An idea ?
Thank's in advance

Xavier
 
C

Cindy M -WordMVP-

Hi Xavier,
I develop in c# an exe with word 2003 pia
I create a CommandBarButton and when I click pn my button, I create a custon
dialog
I use ShowDialog (with handle word or not)
When I move my dialog, Word doesn't paint the document.
This question isn't really Word VBA, so it's uncertain you'll get a useful
response. A better place to ask this would be one of the office.developer
newsgroups. You should even turn up a few discussions in one or two of those
groups on the problems of using .NET Windows Forms with Office (Word)
applications. The two really don't know the other exists.

Word VBA does provide Application.ScreenRefresh, but I don't know if that will
help in this instance. Chances are, you'll need to resort to something that
forces the screen to repaint, possibly the Windows API if the Framework
doesn't provide that.

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 :)
 
X

Xavier

Thank's Cindy for your response

Xavier

Cindy M -WordMVP- said:
Hi Xavier,

This question isn't really Word VBA, so it's uncertain you'll get a useful
response. A better place to ask this would be one of the office.developer
newsgroups. You should even turn up a few discussions in one or two of those
groups on the problems of using .NET Windows Forms with Office (Word)
applications. The two really don't know the other exists.

Word VBA does provide Application.ScreenRefresh, but I don't know if that will
help in this instance. Chances are, you'll need to resort to something that
forces the screen to repaint, possibly the Windows API if the Framework
doesn't provide that.

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


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