Search - Articles - Dev Forums - Favorites - Member Login  
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Sunday, March 14, 2010

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Articles & Samples > C-Sharp > Automation
Search:
What's New - What's Hot


Find and Highlight Text Using UI Automation        
Total Hits: 141  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

The following example obtains a TextPattern object from a text control. A TextPatternRange object, representing the textual content of the entire document, is then created using the DocumentRange property of this TextPattern. Two additional TextPatternRange objects are then created for the sequential search and highlight functionality....

Word automation using C#        
Total Hits: 240  |  Today: 1 Author: Amrish Deep Ravidas       Rating:  
Read Reviews | Write Review |   Your Rating: 

Word Automation through C# is all about programmatically generating the Word Document using C# code. Working on Word is considered to be straightforward, but doing the same programmatically gets a little intricate. Word automation almost completely involves working with objects and reference types. Almost all of the tasks which we perform on word 2003 can be done programmatically using C# or VB. Tasks like Inserting Table of Contents, Linking documents, Mail Merge, Inserting Documents, Embedding...

Automation of variable replacement using snippets or copy & paste.        
Total Hits: 254  |  Today: 0 Author: Grant Simms.       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article describes how to add variable replacements into your snippet generated code, or even a simple copy and paste function. The first thing we need to do is trap the code changed event from the IDE, we need to have a mechanism that allows us to look up a value to replace. Now we need to replace the inserted code. This will also allow us to use the functionality as an inline variable replacement, like word uses auto-correct. Secondly, we need this mechanism to work in conjunction with the...

HOWTO: Use Automation to Create Office Command Bars and Controls with Visual C# .NET        
Total Hits: 763  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article demonstrates how to automate Excel to create a command bar that contains buttons, drop-down list boxes, combo boxes, and pop-up menus....

HOWTO: Automate Excel With Visual C# .NET To Fill or Obtain Data In a Range Using Arrays        
Total Hits: 2524  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article demonstrates how to automate Excel from Visual C# .NET to fill and retrieve values in a multi-cell range by using arrays....

HOW TO: Use Visual C# .NET to Automate a Running Instance of an Office Program        
Total Hits: 1792  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

This step-by-step article shows you how to create a Visual C# .NET client that gets an Automation Reference to a running instance of an Office program....

HOW TO: Use a File Name to Start an Application by Using Visual C# .NET        
Total Hits: 970  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

This step-by-step article shows you how to start the application that is associated with a given document extension or file type without needing to know the name or location of the associated application. For example, you can start Arcade.bmp with the application that is associated with the .bmp file extension, which is MSPaint.exe in most cases....

HOWTO: Use Automation to Create and Show a PowerPoint Presentation by Using Visual C# .NET        
Total Hits: 2026  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

This step-by-step article describes how to automate PowerPoint with Visual C# .NET to create and then show a PowerPoint presentation....

HOW TO: Wait for a Shelled Application to Finish by Using C#        
Total Hits: 704  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

This step-by-step article shows you how to use the .NET Framework Process class to start another application from your code and have the code wait for the other application to close before it continues. When the code waits for the application to finish, there are two options: Wait indefinitely for the other application to either finish or be closed by the user. Specify a time-out period after which you can close the application from your code. This article presents two code samples that demonstr...

HOW TO: Handle Events for Excel by Using Visual C# .NET        
Total Hits: 1052  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

This step-by-step article describes how to handle Excel events from an Automation client that is developed with Visual C# .NET. Visual C# .NET uses delegates to handle Component Object Model (COM) events. Delegates are a new concept in Visual Studio .NET. In the case of COM events, a delegate listens for events from the COM server, and forwards them to a Visual C# function....

HOWTO: Use the WebBrowser Control to Open Office Documents with Visual C# .NET        
Total Hits: 1871  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

You may want to display, or embed, an Office document directly on a Visual C# .NET Form. Visual C# .NET does not provide an OLE control that allows you to embed an Office document on a form. If you want to embed an existing document and open it as an in-place ActiveX document object within a Visual C# .NET form, a potential solution for you is to use the Microsoft WebBrowser control. This article demonstrates how to browse to an existing Office document and display it inside a Visual C# .NET for...

HOW TO: Programmatically Start the Default Internet Browser by Using Visual C# .NET        
Total Hits: 790  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

This step-by-step article shows you how to start the default Internet browser....

UI Automation with Windows PowerShell        
Total Hits: 198  |  Today: 0 Author: Dr. James McCaffrey       Rating:  
Read Reviews | Write Review |   Your Rating: 

Though it has only been around for a relatively short amount of time, Windows PowerShellTM is already one of my favorite tools. I recently discovered that Windows PowerShell has all the features you need for creating a tiny library that will enable you to write ultralightweight UI automation.

In this month's column, I will show you how to create a small collection of custom Windows PowerShell cmdlets that perform Windows® UI automation tasks. These include obtaining handles to application...

Wireless Home Automation Using .NET        
Total Hits: 388  |  Today: 1 Author: 15seconds       Rating:  
Read Reviews | Write Review |   Your Rating: 

Essentially, home automation is the ability to control devices around your house from your PC. For example, if you go away on holidays, you could schedule your PC to rotate your lights on a normal schedule. Turn them all off during the day, then back on in the evening and finally all off again at night. This of course would give the impression that you are at home and potentially thwart robbery attempts. Other examples would be having the coffee pot and toaster automatically begin at 7:00 am and...

Build a class to generate random passwords        
Total Hits: 330  |  Today: 0 Author: codeproject       Rating:  
Read Reviews | Write Review |   Your Rating: 

You’ll have come across many situations in which you will need to generate a random password comprised of random alphanumeric and punctuation characters. While there are many tools out there that will do this for you, why not write a class in C# that will do it for you, especially when C# makes it so simple and easy....

Build Quick and Easy UI Test Automation Suites with Visual Studio .NET    Version: 0.00       Price: $0.00   
Total Hits: 1  |  Today: 0 Author: James McCaffrey       Rating:  
Read Reviews | Write Review |   Your Rating: 

The .NET Framework provides a surprising new way to quickly and easily create user interface test automation. By using objects in the System.Reflection and System.Threading namespaces, you can write automated tests in minutes instead of hours. This article walks you through the building of a typical Windows-based application that will be used as the test subject. The author then runs through the creation of a C#-based test tool that simulates clicking the test app's UI controls and checks the ap...

Test Automation for ASP.NET Web Apps with SSL    Version: 0.00       Price: $0.00   
Total Hits: 2  |  Today: 0 Author: James McCaffrey       Rating:  
Read Reviews | Write Review |   Your Rating: 

If you're encrypting user data with Secure Sockets Layer (SSL) over HTTP and you want to test your Web applications programmatically you'll find that the techniques are not widely known. In this month's column I'll show you how to set up a test SSL server and write test automation that verifies the functionality of a simple but representative Web application....

Lightweight UI Test Automation with .NET    Version: 0.00       Price: $0.00   
Total Hits: 3  |  Today: 0 Author: James McCaffrey       Rating:  
Read Reviews | Write Review |   Your Rating: 

Manual user interface testing is one of the most fundamental types of software testing and it's the kind of testing that most software engineers first experience. Paradoxically, automated user interface tests are probably the most technically challenging kind of test to write. The Microsoft® .NET environment provides you with many ways to write automated user interface test automation. One common and useful approach is recording keystrokes, mouse movements, and clicks and then playing them back ...

Low-Level Web App UI Test Automation    Version: 0.00       Price: $0.00   
Total Hits: 4  |  Today: 0 Author: James McCaffrey       Rating:  
Read Reviews | Write Review |   Your Rating: 

As Web applications have become more complex, testing them has become more important. There are many testing techniques available to you. For example, in the April 2005 issue of MSDN®Magazine, I describe a simple JScript®-based system that can test a Web app through its UI by using the Internet Explorer Document Object Model. That technique is effective but has several limitations. Some of my colleagues asked me if it was possible to use the .NET Framework to write more powerful but still lightw...

The Microsoft UI Automation Library    Version: 0.00       Price: $0.00   
Total Hits: 5  |  Today: 0 Author: Dr. James McCaffrey       Rating:  
Read Reviews | Write Review |   Your Rating: 

There are several techniques you can use to test the user interface of a Windows® application. For example, you can use System.Reflection classes to test Microsoft® .NET Framework applications or you can test both .NET and native applications by calling Win32® API functions such as FindWindow—either with unmanaged C++ or with C# or Visual Basic® by using the P/Invoke mechanism....


1  2  3  4  Next >> 


DevASP.Net - Disclaimer - Privacy
© 2002-2010 DevASP.net