parent Control for Help.ShowHelp

D

David Thielen

Hi;

My previous post went to solve the IWin32Window for MessageBox so here's the
question for the ShowHelp part again.

When poping up a Help.ShowHelp you need to pass in a Control as the parent.

In an add-in it is important that these have the main Word window as the
parent so the windows show up properly, on top of Word.

How can I do this as Word is not a .NET application? Or is it not possible?
 
P

Peter Huang

Hi

I think we can not do that because the ShowHelp need a managed control
object while the word window is not a managed control even it is not on the
managed heap where CLR allocated memory for managed object.

We usually use hidden dummy form as the parent to do the job. That is to
say, we can create a new invisible form and use it as the help's parent
window.
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.
 

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