I have a little issue, I have form1
in which I got button1
and button2
and I got form2
which I'm able to open with both buttons. Button1 serves as opening form2 and inserting details into SQL DB which can be seen in form1 datagridview. Button2 opens the same form2 but it selects data from form1 and automatically is filling them into textboxes in form2 - it is edit-like.
When I created the button2
(edit button) a problem occured, because form2
didn't knew from which button the was opened.
I thought that everytime I open the form2
I should pass integer
so when form2 is loaded it should decide from which button it was opened and act according to that.
Would someone help me solve this thing out?
Thanks