Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inputting Text into a Windows Form

Status
Not open for further replies.
Mar 13, 2005
32
US
Hello,

I am trying to figure out how to;
1) Find the name of the form that currently has focus
2) Find the names of any textboxes, and buttons on that form
3) How to input text and press the buttons on that form

I've been trying to do research with no luck - I guess I don't know the proper terminology to Google for. The closest I've gotten is that this is probably done through the win api - and as a .NET programmer - I don't know much about.

I know how to access text boxes on a web form – but I recently had an experience with a program that could access windows forms and I have some great uses for this functionality.

Where do I need to start looking? Any .NET examples would be great!

Thanks for the help!!
 
Okay first questions.

What are you writting this in. VB, C# ?

Second Question, are you running this code from within the same program that you want to find the forms of. Or is this you want to find another window running of program type unkown. If the name of that form is called "blah" then input this text.

Casper

There is room for all of gods creatures, "Right Beside the Mashed Potatoes".
 
Thanks for the reply Casper.

I will be writing the app in VB.net. I do know the application that I want to access the forms of - but it is not our program - it’s a third party program we want to create an automation tool for. It was written in vb6 but I do not have access to the source.

Thanks for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top