Inputting Text into a Windows Form
Inputting Text into a Windows Form
(OP)
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!!
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!!
RE: Inputting Text into a Windows Form
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".
RE: Inputting Text into a Windows Form
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!