• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 670
  • Last Modified:

C# code for automating the Login dialog

Hi All,

I am trying to Automate an application, where I am looking for solution to automate the logon dialog that the Microsoft CRM application prompt for.

Ex. When I navigate to CRM application, an login dialog is displayed to enter username/password. Is there any C# code available which can insert username/password in this dialog boxes?
1 Solution
You can write a simple windows forms application and validate the windows domain account using the Windows API called LogonUser.
For a sample code you can take a look at this link http://smartypeeps.blogspot.com/2006/12/validate-windows-domain-account-in-c.html
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now