Display a custom form modal

S

Sampath

Hi ,
I'm writing a word addin. I have added a menu item in word that displays a
custom form designed in vb. My problem is that the custom form is not modal
with respect to word.
How do i make this form modal .


-Sampath
 
J

Jonathan West

Sampath said:
Hi ,
I'm writing a word addin. I have added a menu item in word that displays a
custom form designed in vb. My problem is that the custom form is not modal
with respect to word.
How do i make this form modal .


If it is a VBA UserForm, use a command like this to show it

UserForm1.Show vbModeless
 
M

Mark Durrenberger

However, In MS Project (and I supect in all office add-ins), you won't be
able to easily show a modelss form. If that is the case, repost and I'll
provide the code (api calls) for doing this.

Regards,
Mark


--
_________________________________________________________
Mark Durrenberger, PMP
Principal, Oak Associates, Inc, www.oakinc.com
"Advancing the Theory and Practice of Project Management"
________________________________________________________

The nicest thing about NOT planning is that failure
comes as a complete surprise and is not preceded by
a period of worry and depression.

- Sir John Harvey-Jones
 
S

Sampath

Thanks ..
It worked .

Regards
Sampath

Mark Durrenberger said:
However, In MS Project (and I supect in all office add-ins), you won't be
able to easily show a modelss form. If that is the case, repost and I'll
provide the code (api calls) for doing this.

Regards,
Mark


--
_________________________________________________________
Mark Durrenberger, PMP
Principal, Oak Associates, Inc, www.oakinc.com
"Advancing the Theory and Practice of Project Management"
________________________________________________________

The nicest thing about NOT planning is that failure
comes as a complete surprise and is not preceded by
a period of worry and depression.

- Sir John Harvey-Jones
displays
 

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