Multiple winform data save problem

Posted by Mahesh on Stack Overflow See other posts from Stack Overflow or by Mahesh
Published on 2010-04-07T08:12:21Z Indexed on 2010/04/07 8:13 UTC
Read the original article Hit count: 264

Filed under:

hi

am using C# with VS-2005

I have a form1 and about two textBox and one Combobox on it. like below

textBox1 texbox2 ComboBox

I have bind combobox by sql database. first user type in textbox1 and textbox2 and then

goes to comboBox in which "BuyerName" available on it. if user not found the data in the

comboBox then press ALT+C for opening of Form2 where they create data and save it.

My problem is when I closed the form2 by saving data of "BuyerName" the form1 is open as

per my requirement but the data of textBox1 and textBox2 which user typed before opening of

form2 is lost and therefore user have to re-type on it. which i don't want as it wasting of

time. I want when form2 closed and form1 open the data will be available on it. and when u

create fresh "BuyerName" from form2 the "BuyerName" will be automaticaly available on form1

comboBox on closing of form2.

Hope u will get it. am new here in programing so kindly suggest me by proper codeing.

thx in Advance.

© Stack Overflow or respective owner

Related posts about winforms