Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass the value to other form ( must use MDI )?
Message
De
18/01/2011 06:17:45
 
 
À
18/01/2011 03:22:41
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Divers
Thread ID:
01496399
Message ID:
01496404
Vues:
39
>HI ALL,
> I want to one form pass the variable to other form , but i can't do it , but i not use mdiparent is ok
>..... i want to use mdi form to pass the variable , how can i do?
>I main form use MDI form ....
>
>     Dim Quotation_Add As New Quotation_Add
>        Quotation_Add.MdiParent = Me
>        Quotation_Add.Show()
>------------------------------------------
>Method 1, is not work only blank
>
>    Public Property findericmaspass() As String
>        Get
>            Return Me.IcmasPass
>        End Get
>        Set(ByVal value As String)
>            Me.IcmasPass = value
>            TextBox1.Text = value
>        End Set
>    End Property
>---------------------------------------
>Method 2, is not work only blank
>
>storageAdvice.TextBox1.Text = "aaa"
I'm not clear from your code exactly what you want. Based on a guess:
Dim storageAdvice As Quotation_Add
'Create the form:
storageAdvice = New Quotation_Add
storageAdvice.MdiParent = Me
storageAdvice.Show()
storageAdvice.TextBox1.Text = "aaa"
Just make sure that storageAdvice is defined with sufficient scope if you want to access it from elsewhere in the parent form.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform