VB点击另一个窗体上的按钮
6个回答
展开全部
form1==================
Option Explicit
Private Sub Command1_Click()
Call Form2.test
End Sub
form2====================
Option Explicit
Private Sub Command1_Click()
MsgBox "qq"
End Sub
Public Sub test()
Call Command1_Click
End Sub
Option Explicit
Private Sub Command1_Click()
Call Form2.test
End Sub
form2====================
Option Explicit
Private Sub Command1_Click()
MsgBox "qq"
End Sub
Public Sub test()
Call Command1_Click
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这段代码应该好用:
form1
Private Sub Command1_Click()
form2.command1.value=1
End Sub
form2
Private Sub Command1_Click()
form1.command1.value=1
End Sub
form1
Private Sub Command1_Click()
form2.command1.value=1
End Sub
form2
Private Sub Command1_Click()
form1.command1.value=1
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
form1
Private Sub Command1_Click()
form2.command1.value=1
End Sub
form2
Private Sub Command1_Click()
form1.command1.value=1
End Sub
Private Sub Command1_Click()
form2.command1.value=1
End Sub
form2
Private Sub Command1_Click()
form1.command1.value=1
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
form1
Private Sub Command1_Click()
form2.tt
End Sub
form2
Private Sub Command1_Click()
tt
End Sub
public Sub tt()
msgbox "Form2_Command1_Click"
end sub
Private Sub Command1_Click()
form2.tt
End Sub
form2
Private Sub Command1_Click()
tt
End Sub
public Sub tt()
msgbox "Form2_Command1_Click"
end sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
formA
Private Sub Command1_Click()
form2.Command1_Click
MsgBox "A"
End Sub
formB
Public Sub Command1_Click()
MsgBox "B"
End Sub
Private Sub Command1_Click()
form2.Command1_Click
MsgBox "A"
End Sub
formB
Public Sub Command1_Click()
MsgBox "B"
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询