1. You need to construct the location where you'll put the control: usually something like a placeholder or a table cell. The control must be accessible from the code.
2. In your code, do this:
Dim objDynamicallyCreatedControl As New SomeControlType
myContainerControl.Controls.Add(objDynamicallyCrea tedControl)
Peter
------------------------------------------------------
Work smarter, not harder.
|