943,771 Members | Top Members by Rank

Ad:
Dec 22nd, 2008
0

help

Expand Post »
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
Reputation Points: 3
Solved Threads: 5
Posting Whiz in Training
ryan311 is offline Offline
254 posts
since Jul 2008
Dec 23rd, 2008
0

Re: help

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
Reputation Points: 10
Solved Threads: 9
Junior Poster
sierrainfo is offline Offline
144 posts
since May 2008
Dec 23rd, 2008
0

Re: help

well thanks but you gave me wrong answer and thanks for the idea dont worry i will mark this thread as solved
Reputation Points: 3
Solved Threads: 5
Posting Whiz in Training
ryan311 is offline Offline
254 posts
since Jul 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: attachment
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Kindly help me





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC