Hi,
Does anyone know how to create a UserControl at runtime, without using Control Arrays?
I can create standard control like this...
Dim ctlName As Control
Set ctlName = Form1.Controls.Add("VB.Textbox", "Text1", Form1)
ctlName.Visible = True
But I cant find out how to create a UserControl dynamically at runtime.
The UserControl is designed at design time, I just want to include it on a form at runtime...
Thanks,
Rob D
ProIV Resource Centre
Does anyone know how to create a UserControl at runtime, without using Control Arrays?
I can create standard control like this...
Dim ctlName As Control
Set ctlName = Form1.Controls.Add("VB.Textbox", "Text1", Form1)
ctlName.Visible = True
But I cant find out how to create a UserControl dynamically at runtime.
The UserControl is designed at design time, I just want to include it on a form at runtime...
Thanks,
Rob D
ProIV Resource Centre