How to programmtically press the button in VB 6

i have two buttons: button One and Button Two
to make long story short : i want to use Button One to press button Two

i have visual basic 6.0
rfedorovAsked:
Who is Participating?
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:

Private Sub btnOne_Click()
    Me.btnTwo_Click
End Sub

Public Sub btnTwo_Click()
    MsgBox "I AM Btn Two"
End Sub
0
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
Or .. with both Private Subs

Private Sub btnOne_Click()
    Call btnTwo_Click
End Sub


Public Sub btnTwo_Click()
    MsgBox "I AM Btn Two"
End Sub
0
 
rfedorovAuthor Commented:
thanks for such a quick respond. i will check tomorrow the very first thing in the morning
:)))
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
oooooook
0
 
andrewneelyCommented:
also,
Button1.value=true
0
 
rfedorovAuthor Commented:
thanks a lot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.