×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Inputting Text into a Windows Form

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!!

RE: Inputting Text into a Windows Form

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".

RE: Inputting Text into a Windows Form

(OP)
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!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close