Solved

Responding to a ButtonClick

Posted on 1997-10-10
4
154 Views
Last Modified: 2010-04-04
Q1. How do I by bypass a button click? For example: Instead of clicking the button with the mouse,I want it to respond to design time code that makes the button think its been clicked.
0
Comment
Question by:Ham
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
fsanchez earned 50 total points
ID: 1347275
You only need to call the Click method of the button.
0
 

Author Comment

by:Ham
ID: 1347276
A simple question does deserve a simple answer. However-

How can I use the OnClick or OnClose event without actually using the Form and it's name - I want to use something like

     Screen.ActiveForm      as it doesn't use names.

Reason being is that I want it to respond (to either OnClose or OnClick) on many forms that fall into certain category.

    ie. If a Form has a certain height, rather than manually (with the mouse) close or click I would like design code to do this.
Thanks.
0
 

Author Comment

by:Ham
ID: 1347277
A simple question does deserve a simple answer. However-

How can I use the OnClick or OnClose event without actually using the Form and it's name - I want to use something like

     Screen.ActiveForm      as it doesn't use names.

Reason being is that I want it to respond (to either OnClose or OnClick) on many forms that fall into certain category.

    ie. If a Form has a certain height, rather than manually (with the mouse) close or click I would like design code to do this.
Thanks.
0
 
LVL 1

Expert Comment

by:fsanchez
ID: 1347278
Sorry, I cant't understand. A more complete example would help. What means 'design code'?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now