Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I develop a C# Win Forms application. How to move MS Word window on top using Microsoft.Office.Interop.Word?

Best regards,
Simon
Posted
Comments
Jaganathan Bantheswaran 23-Jan-12 6:55am    
Can you elaborate the question?

Try this on your reference to Word.Application:
VB
objWord.Activate()
objWord.Visible = true
objWord.WindowState = 1

Good luck!
 
Share this answer
 
I'm not shure why you want to do this using Microsoft.Office.Interop.Word (I think E.F. Nijboers solution should work). But if this doesn't work for you (user interaction in between, ...) just use the
SetForegroundwindow function(http://msdn.microsoft.com/en-us/library/windows/desktop/ms633539(v=vs.85).aspx[^])
through Interop
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900