Link to home
Start Free TrialLog in
Avatar of Ham
Ham

asked on

Responding to a ButtonClick

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.
ASKER CERTIFIED SOLUTION
Avatar of fsanchez
fsanchez

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ham
Ham

ASKER

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.
Avatar of Ham

ASKER

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.
Sorry, I cant't understand. A more complete example would help. What means 'design code'?