[quoted text, click to view] On Apr 17, 7:28 am, "Pablo Czyscas" <turto...@hotmail.com> wrote:
> Hi, i=B4m new developping app, and my question is:
>
> I=B4ve 2 forms, fomr1 anf form2. In my form1 i=B4ve a datagrid that show s=
ome
> data products from a SQLCE db... the form2 has a textbox where the user fi=
ll
> a product name... how can i accomplish when the form2 is show, the user
> enter into the textbox a product name, and when he press ok and the form2 =
is
> closed, the form1 show the new data ?
>
> Thanks a lot!
I assume that you're opening the edit form using ShowDialog. If so,
set the this.DialogResult to an appropriate DialogResult enum value
(i.e. DialogResult.OK) before closing. From the caller, you can
retrieve the return value which should be the value you have just set
and take appropriate actions, such as rebinding your datagrid to show