How do I call this event or make this happend...

AriCepeda

New member
Joined
May 12, 2011
Messages
1
Programming Experience
Beginner
Hey guys,Im new to VB.Net and need a little help.I have two forms,In the main form I have a textbox for the CustomerId to be entered,three Labels including the Customers Name,Phone and Email and a button where if its clicked a second form appears with a datagridview containing the list of customers list so the user can select one and double click it so the customer's ID can automatically appear in the main form's CustomerID textbox.I got this part right!

When the user enters a valid ID in the CustomerID textbox the three labels below will be automatically entered.
When I enter manually a valid ID and click enter it works perfectly.But when I select it from the second form it only enters the CustomerID in the CustomerID textbox but his information doesnt appear.If I click enter after this it works great cause I have the code placed in the CustomerID textbox,but I want to make it appear automatically when I click grid in second form.I have done this before but since the second form is a modal form it is giving me problems!!

Hope you guys can help me out here!!Thanx!!
 
Back
Top