C
cjobes
Hi all,
I'm trying to create a dataset as a component to make it accessable from all
forms. I have used that following code so far in the component designer:
Inherits System.ComponentModel.Component
Dim _TryDs As dataSet = NewTry
Public Property dataSet() As dataSet
Get
Return Me._TryDs
End Get
Set(ByVal Value As dataSet)
Me._TryDs = Value
End Set
End Property
Now I have no idea how to add the 2 tables. I have created 2 subs
"createTableA" and "createTableB" and added the commands
createTableA()
createTableB()
after the initialize component line.
When I try to reference the component the DS is recognized but the tables
are not. I know I'm missing something here. Can anybody help?
Thanks,
Claus
I'm trying to create a dataset as a component to make it accessable from all
forms. I have used that following code so far in the component designer:
Inherits System.ComponentModel.Component
Dim _TryDs As dataSet = NewTry
Public Property dataSet() As dataSet
Get
Return Me._TryDs
End Get
Set(ByVal Value As dataSet)
Me._TryDs = Value
End Set
End Property
Now I have no idea how to add the 2 tables. I have created 2 subs
"createTableA" and "createTableB" and added the commands
createTableA()
createTableB()
after the initialize component line.
When I try to reference the component the DS is recognized but the tables
are not. I know I'm missing something here. Can anybody help?
Thanks,
Claus