By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

I have two buttons calling a form, how do I tell which one and pass info back?

Lokean
P: 71
I have two buttons

I want to call a form that will allow users to enter data and then pass it back to a field on the calling form depending on which button was clicked.


Example

Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click

'**** need to open form B, do something and update text1 on Form A

End Sub

Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click

'**** need to open form B, do something and update text2 on Form A

End Sub


Any ideas?
Apr 24 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.