473,786 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Send Enter key to MSWord Dialog Box

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

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #1
1 2594
The application object has a property DisplayAlerts that can be set to three
levels - 0 means no dialogues & assume the default button is clicked.
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
11129
by: Systemspecialist | last post by:
Hi All, I need to sent key code (for example, like enter) to the textbox control. I need to simulate press key. i think , solution can be by firing message, but i don't know how.... Thanks a lot.
4
1140
by: Husam | last post by:
hi EveryBody: How can I click the Enter button automatically, how can I write code progrmatically that click the Enter Button ? Any help will be appreciated regard's Husam
2
1726
by: xargon | last post by:
Hi everyone, I have a frustrating problem. I have a Windows dialog based application (non-MFC). So, I created the dialog in the resource editor. However, I want to precisely specify the size of the dialog. But the resource editor does not let me specify the width and height of the dialog. It has property fields for x and y pos but no fields for width and height. So, my question to you gurus is how I can specify the width and height of...
2
2927
by: mounilkadakia | last post by:
I have a CrystalReportViewer(crv) on my form. I also have a dataset (dtsReportData) populated with the required data and i have a ReportDocument (rdReport) object. The data source for the crystal report (CR 11) is a stored procedure. This is what i am doing:- rdReport.Load("ReportLocation"); //ReportLocation is the file path. rdReport.SetDataSource(dtsReportData); crv.ReportSource = rdReport;
2
2235
by: ME | last post by:
I can not for the life of me figure out how to send the ENTER key to a RUNNING instance of the Console. I do not have access to the startup of the console in this case. I have found a way to attach to the console using AttachConsole (Kernal32). Now I need to send the Enter key to it. I can get the cursor to move down one line, but I can not seem to send an Enter so the command prompt process the command I write. Can some help? I...
2
2196
by: mehdi_mousavi | last post by:
Hi folks, has got a button, that enabled user whether to send some sort of data (when an application crashes) to Microsoft. I would like to know that is there anyway to incorporate this functionality to our code? i.e., Is there anyway to use the same dilaog box within an application to send some sort of data when the application crashes ro support@our_app.com? Any help would be highly appreciated, Cheers,
14
2565
by: favor08 | last post by:
How do I get remove the dialog box that pops up each time a fax is getting ready to be sent. I just want them to go. Right now the user would have to click the yes each time. I just want to have a message box show up that says you are about to seen 12 faxes do you want to send they click yes and 12 send with no dialog box if no the action cancels. Dim db As DAO.Database Dim rst As DAO.Recordset Dim strName As String Dim strFaxNo As...
0
1353
by: revacdm20635 | last post by:
hi, I am working in VB.NET 2003(.NET Framework 1.1). I want to send the key Enter or Space to the process. My code is <CODE>
10
2286
by: Rob | last post by:
For example, how could you programatically "click" on a button in a Form ?
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9961
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8989
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.