How do I Tell VB to click on buttons in the executable program?

Are you talking about making VB click one of it's buttons, or do you want to click buttons in another app's program? You can make VB click one of it's own buttons by simply setting it to true. So, pretend you have form1, and 2 buttons (command1 and command2) command2 exits the program, and command1 does a msgbox, and then exits the program. The code for command1 could look like this:

msgbox "goodbye"
command2 = true
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.