1 Addressbook, 2 Forms

daxriders

New member
Joined
Jul 6, 2009
Messages
3
Programming Experience
Beginner
I'm new to to VB and ADO.NET and i would like to create an addressbook with:

- one form with a datagridview containing some infos(name, company, phone number and email)
- a second form with the full details of the selected contact

Questions:
- should i use a typed dataset or programm everything myself?
- how do i display the full contact details in the 2nd form after clicking on the first form?

Thanx in advance for your help!
 
i dont expect any sample code... just any idea how it's supposed to work:

- pass the data from form1 to form2 as a datarow?
- form1 and form2 should have the same bindingsource?
- ...
 
the solution i found so far, is to have the same bindingsource for the datagridview(1st form) and the textboxes(2nd form), like this:

VB.NET:
Me.txtName.DataBindings.Add(New System.Windows.Forms.Binding("Text", frmPersonenListe.TblPersonenBindingSource, "Name", True))

My problem now is that the changes made in the textboxes are applied directly to the datagridview.
How can i let the user confirm saving the changes before closing the form?
And if not confirmed, to leave the data unchanged?
 

Latest posts

Back
Top