MDI application

  • Thread starter Thread starter Aaron Todd
  • Start date Start date
A

Aaron Todd

I am new to VB.NET and ADO.NET. I am used to the VB6 and the old ADO.

I am trying to create a database program in VB.NET using MDI forms. I
connecteded fine and created the dataset. I am able to manipulate the data
on my main MDI form. But I'd like to give a child form access to the data
also.

This has been my only attempt at using .NET so I went with the wizard
approach of creating the data connection, command, and dataset.

If anyone can tell me what I need to do I would really appreciate it.

Thanks,

Aaron
 
Aaron,

Create a property on the MDI form that returns a reference to the DataSet.
You can call that from the child form. If you used default naming it would
be

Function GetMeaningfullyNamedDataset As Data.DataSet
Return DataSet11
End Function
 
Back
Top