How to Send Enter key to MSWord Dialog Box

  • Thread starter Thread starter Matt Curreri
  • Start date Start date
M

Matt Curreri

I'm trying to automate the creation of a MSWord document with C#;
however, when I start creating the MSWord document, I occassionly have a
MSWord dialog box displaying a warning of low memory and asking if I
would like to continue (Yes, No, Cancel).

Is there a way to send the "Enter" or mouse click to this MSWord Dialog
Box to invoke the "Yes" option, which will allow the MS Word to
continue?

I would appreciate any help... Matt
 
The application object has a property DisplayAlerts that can be set to three
levels - 0 means no dialogues & assume the default button is clicked.
 
Back
Top