Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Responding to a ButtonClick

Posted on 1997-10-10
4
Medium Priority
?
163 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
[X]
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
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
fsanchez earned 100 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

722 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