![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Passing dataset by reference between forms, what is the best approach? Hello there, I am wanting to pass my datasets by reference to other forms. As soon as I do that I have to reset any binding sources by setting their datasource property to the original datasource. I also find that I cannot then bind directly to my dataset without a binding source, so I have to duplicated all my binding sources on my second form. Is this normal or am I doing something wrong? How do you guys normally pass large amounts of data between forms? This is my function I run to pass the reference in (I didn't overload new for some reason which I dont recall now) Public Sub assignReference(ByRef theDs As dataset) Me.ds = theDs Me.serviceOrderBindingSource.DataSource = Me.ds End Sub Thank you kindly for anyones thoughts John Sheppard |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| simulate continuous forms & subforms in a windows forms application | .NET General | |||
| Passing ArrayList as reference to function | PowerShell | |||
| Passing hash table by reference | PowerShell | |||
| passing variable by reference | PowerShell | |||