# Re: 如何用 SendMessage API click 一个Command Button ?

Posted by ch on October 22, 1998 at 16:51:12:

In Reply to: 如何用 SendMessage API click 一个Command Button ? posted by 儿子 on October 22, 1998 at 01:22:20:

: 如何用 SendMessage API click 一个Command Button ?
其实根本不必用到Windows API,只要你...
范例:(在一表单上放一按纽)
Private Sub Command1_Click()
MsgBox "this is a book"
End Sub

Private Sub Form_Load()
Call Command1_Click'只要这个叙述即可
End Sub

Follow Ups: