3
Contributors
3
Replies
12
Views
4 Years
Discussion Span
Last Post by masterfact18
0

just call command1 event proceudre on command2_click event and so write there

command1_click

0

In VB6 you can call the event handler the same as any sub, just use Command1_Click in the Click handler for Command2. It's probably cleaner to make the code in Command1 a separate sub routine or function and call it from each button. If you decide to change things down the road, this way will make it easier.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.