PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Beginner question, help!
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Beginner question, help!
![]() |
Beginner question, help! |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi, i´m new developping app, and my question is:
I´ve 2 forms, fomr1 anf form2. In my form1 i´ve a datagrid that show some data products from a SQLCE db... the form2 has a textbox where the user fill 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! |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hi,
You can do that in form1_Activated, when you close form2, you can refresh datagrid on form1 activated. hope this help. -- Armando Rocha Mobile Developer http://www.ifthensoftware.com "Pablo Czyscas" <turton_1@hotmail.com> escreveu na mensagem news:exAHCaIoIHA.4832@TK2MSFTNGP02.phx.gbl... > Hi, i´m new developping app, and my question is: > > I´ve 2 forms, fomr1 anf form2. In my form1 i´ve a datagrid that show some > data products from a SQLCE db... the form2 has a textbox where the user > fill 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! > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
On Apr 17, 7:28 am, "Pablo Czyscas" <turto...@hotmail.com> wrote:
> Hi, i´m new developping app, and my question is: > > I´ve 2 forms, fomr1 anf form2. In my form1 i´ve a datagrid that show some > data products from a SQLCE db... the form2 has a textbox where the user fill > 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 the changes. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

