Disable help function, remove maximizebox, close button

T

trinhtomsk

Could anybody help me to disable the help function of MS Word and remove
MaximizeBox, window close button using C#. I am making a test for MS Office,
so I need to ensure that my student do not have chance to look for answer in
Word Help during exam.
Thanks a lot.
 
T

That Guy

Could anybody help me to disable the help function of MS Word and remove
MaximizeBox, window close button using C#. I am making a test for MS Office,
so I need to ensure that my student do not have chance to look for answer in
Word Help during exam.
Thanks a lot.

I have only ever done this by 'sub-classing' and I have never tried to
do it to a form that I was not the creator of.

You would need to complete the following steps to get rid of the
Maximize button:

-find the word application instance.
-hook into is process for thread safety.
-Use its handle to start intercepting its UI messages
-catch the paint messages and then replace them with your custom
messages that would remove the frame elements you don't want.

then to disable help you would need to listen to all of the click
messages and determine if the help link was pressed, and you would
need to listen to key presses to catch all the F1 instances so that
they couldn't open help this way.

Are you testing them on M$ Word usage?
 
T

Tony Jollans

I believe you can install Office without installing the Help component.
Wouldn't that be the simple thing to do?
 

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