Hi Dave,
Thanks for posting in the community.
>My question is this: Why are these Sql components not added to the list of
>components contained by MyComponent? (These objects are not added to the
>private "components" member of MyComponent.)
This is because the Sql components did not implement the contructor as
below.
Public Sub New(ByVal Container As System.ComponentModel.IContainer)
Me.New()
Container.Add(Me)
End Sub
For detailed information, you may take a look at the article below.
What's that "Windows Form Designer generated code" anyway?
http://www.vbinfozine.com/a_disposable_comp.shtml
>Is there any way I can get
>the Designer to add these items to the collection automatically, without
>having to hand-code it myself?
Since the SQLDataAdapter is an sealed class, it can not be derived, I think
we need to do it by coding ourselves.
As for the other question, I am doing researching, if I have any new
information, I will update you with ASAP.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.