Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent & Child form sharing the same Dataset control.
Message
From
14/06/2007 11:08:20
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01233022
Message ID:
01233045
Views:
12
>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/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform