pressonbutton
|
|
Press On Button That Found On Other Form
Press On Button That Found On Other Form
Press on Form1 Button, and Form2 Button will be pressed.
Preparations
Add Command Button to your form (named Command1).
Add another form to your project (named Form2).
Add Command Button to Form2 (named Command1).
Form1 Code
Private Sub Command1_Click()
Form2.Command1.Value = True
End Sub
Form2 Code
Private Sub Command1_Click()
MsgBox "The button has been clicked"
End Sub
| |
|
|
|