Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parent & Child form sharing the same Dataset control.
Message
De
14/06/2007 11:08:20
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01233022
Message ID:
01233045
Vues:
11
>Mike:
>
>For your information I did not create an object , I binded the control to the form so I dont have a object like dim ds as new dataset etc.


Yes, that's what I was thinking. I usually create the object in code, but I think you should be able to do something like this.

In your child form, add this function:
    Public Sub New(ByVal myDataset As DataSet)

        Me.New()

        MyFormDataset1 = myDataset

    End Sub
Now, where you declare the child form in your parent form's code, use the new constructor and pass in your datset as the parameter.
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform