Jump to content

Using ControlClick to click a Control!


Recommended Posts

Hi,

I am trying to click a Button control on a Windows Form. The button is called btnViewOrders and the text is View , so how do I format my ControlClick? I will not always know the controlID, and even if I do it does not seem to work.

Something like:

ControlClick("Form2", "", "View")

Any ideas?

Link to comment
Share on other sites

If you don't know the control ID, you can always do something like "[TEXT: text]" in its place.

Here is an example

ControlClick("Form2", "", "[TEXT:View]")

This is also in the help file, so before you post on the form, you may want to try to use that.

Edited by timsta97
Link to comment
Share on other sites

If you don't know the control ID, you can always do something like "[TEXT: text]" in its place.

I have never seen that as a Property class...where is that located? I would find that very useful for future projects.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...