hi everyone...

my problem is i got 2 command button named command1 and command2..what i want to happen is when command2 is click the function of command1 will work...

can someone please help me...

Recommended Answers

All 3 Replies

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

command1_click

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.

thank you Mr. Rishif2!! now i got it and its working...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.