Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Word Controls Sample

NoteNote:

This sample runs only in Microsoft Office Word 2007.

This sample demonstrates how to access the events of managed controls on a Word document from a Visual Studio Tools for Office project assembly.

Security noteSecurity Note:

This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. We recommend that you add security and error-handling code to make your projects more secure and robust. Microsoft provides this sample code "AS IS" with no warranties.

To run this sample

  • Press F5.

This sample demonstrates:

  • Accessing controls on a Word document using Visual Basic and C#.

  • Handling control events.

  • Programming against managed controls, host controls, and user controls.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.