Nikhil

Nikhil

  • NA
  • 7
  • 0

passing data between forms

Sep 12 2009 6:15 AM

Hi,
I am new to c#. I am developing an application using VS.Net 2005 in c#. I have around 10 text boxes in say Form1. I key in all the data in the text boxes.
There is a checkbox on Form1, on clicking it another form say Form2 opens. Form2 has some data displayed in datagrid view. I choose a particular row and click the ok button. The data in the row should populate three text boxes on Form1.
What happens is... the three text boxes get populated by the data i selected from From2 but the 10 text boxes on Form1 (which already contained data) get reset (data gets erased)
Not able to figure out what's wrong.. pl help
Regds,
Jonik

Answers (7)