There has to be a simple answer to this. I created a user control called ctlAuditDetailExpert in VB.Net. I can manually add it to a parent windows form successfully.
The goal is to allow the user to add new instances of cltAuditDetailExpert at runtime. I attempted to add the user control as follows
Sub Test(lpName as string)
Dim ctl as New ctlAuditDetailExpert
with ctl
.location = New Point(50,50)
.visible = true
.show()
.name = lpName
end With
End Sub
The code run fine, no error messages but the newly added user control is not seen on the parent form. What am I missing?
The goal is to allow the user to add new instances of cltAuditDetailExpert at runtime. I attempted to add the user control as follows
Sub Test(lpName as string)
Dim ctl as New ctlAuditDetailExpert
with ctl
.location = New Point(50,50)
.visible = true
.show()
.name = lpName
end With
End Sub
The code run fine, no error messages but the newly added user control is not seen on the parent form. What am I missing?