[求助]跳转执行一个按钮事件的问题
我的问题是:在程序的另外一个地方,执行一个按钮的事件,我的代码如下:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
//我的代码
End Sub
Private Sub TBpasswd_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TBpasswd.KeyPress
If Asc(e.KeyChar) = System.Windows.Forms.Keys.Enter Then //我想按下回车键执行button1的click事件
Button1_PFClick(),此出代码有问题,望指正,谢谢!
End If
End Sub