Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Urgent!!!!!

Posted on 2000-03-21
1
160 Views
Last Modified: 2010-04-02
How do I call the click event of a buttonA using the click event of buttonB.
I am using Borland C++ Builder.
I have used buttonAClick(TObject *Sender)  in the click event of buttonB but it does not work.
0
Comment
Question by:pcb69
1 Comment
 
LVL 1

Accepted Solution

by:
loumf earned 40 total points
ID: 2641195
It should be just

buttonAClick(Sender);

where buttonAClick is the name of the event handler for button A.  If you are just calling one from the other then you can just set them to the same function in the event editor.  Just pick buttonAClick in the dropdown for OnClick for Button B.

0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question