Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass the value to other form ( use MDI )?
Message
De
02/02/2012 00:46:31
 
 
À
01/02/2012 05:10:07
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01534193
Message ID:
01534250
Vues:
55
I'm not 100% sure what you're trying to do Alex, because I'm having trouble following your examples there, but I'm thinking that maybe using interfaces might help? Take a look at my blog post about passing data between forms and see if gives you any ideas:

http://geek-goddess-bonnie.blogspot.com/2011/01/passing-data-between-forms.html

~~Bonnie




>Hi all,
> I use vb.net , mdi form. I want to pass the value to previous form mean ItemPrint.txtcdesc.Text ="aaa"
>My case MainForm is menu, on click will go to Itemmas, click the print button to itemprint page, after click the button to
>SelectForm. If click the Ok button , ItemPrint.txtcdesc.Text ="aaa"
> But it is empty in this time, how can i do? Thank you all~~~
>
>MainForm
>
>
>    Sub FunctionMenu_Click(ByVal sender As Object, ByVal e As System.EventArgs)
>        Dim ThisMenu As ToolStripMenuItem = CType(sender, ToolStripMenuItem)
>       Dim sonForm As Form
>       sonForm = _
>        CType(Activator.CreateInstance(System.Reflection.Assembly.GetExecutingAssembly.GetType("WTS." & ThisMenu.Name.ToUpper)), Form)
>
>                    sonForm.MdiParent = Me
>                    sonForm.Show()
>          End Sub
>
>
>Itemmas
>
>
>       Private Sub ToolStripPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripPrint.Click
>        Dim ItemPrint As Form
>        ItemPrint = New ItemPrint()
>        ItemPrint.Show()
>    End Sub
>
>
>Itemprint
>
>
>      Private Sub FinderItmtype_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FinderItmtype.Click
>         txtcdesc.text =""
>          SelectForm.Show()
>    End Sub
>
>
>SelectForm
>
>
>   Private Sub btnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOk.Click
>                ItemPrint.txtcdesc.Text ="aaa"
>    End Sub
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform