how can i call a 1 command button in another form? for example i have form1 in the form 1 i have listbox, in my listbox i have item Customer, Product and etc if i double click my Customer i want to click my command 1 button in form 2 how can i do that? and also in the product if i click the product i want to click the command3 in form 3 please help thanks

In Form1
Private Sub CustemersList_DblClick()
Form2.Comand1_Click()
End Sub

In Form2
Public Sub Command1_Click()
'Your Code Here
End Sub

If you got it MARKED AS SOLVED

well thanks but you gave me wrong answer and thanks for the idea :) dont worry i will mark this thread as solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.