Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running command button from another command button 1

Status
Not open for further replies.

Jooky68

Programmer
Jul 10, 2002
231
US
Is there a way in VB6 to run a command button from another command button. I remember I used to do it in VBA with a run command, but it doesn't seem to work in VB6. Any help would be appreciated. Thanks

Paul J
 
You could call the Sub...

[tt]
Private Sub CommandButton1_Click()
Call CommandButton2_Click
End Sub[/tt]

*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
 
Or:
[tt]
Private Sub CommandButton1_Click()
Command2.Value = True
End Sub
[/tt]

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top