Hi
I want to add a User Control to my form.
If i have the userControl in my form i simply do this
Controls.Add "Main.usrControl", "MyControl"
Controls.Item("MyControl").Visible = True
So far so good.
The problem is there are other user controls in other projects I wanted to add to my form too.
When I do
Controls.Add "Other.usrControl", "MyControl1"
Controls.Item("MyControl1").Visible = True
I get the following error:
"Invalid class string
Looking for object with ProgId: Other.usrControl
"
I tried to add the reference to the dll that contains the user control but still it doesn´t work...
Can anyone help me please?
Or give me a work around for this?
Thanks in advance
Sara
I want to add a User Control to my form.
If i have the userControl in my form i simply do this
Controls.Add "Main.usrControl", "MyControl"
Controls.Item("MyControl").Visible = True
So far so good.
The problem is there are other user controls in other projects I wanted to add to my form too.
When I do
Controls.Add "Other.usrControl", "MyControl1"
Controls.Item("MyControl1").Visible = True
I get the following error:
"Invalid class string
Looking for object with ProgId: Other.usrControl
"
I tried to add the reference to the dll that contains the user control but still it doesn´t work...
Can anyone help me please?
Or give me a work around for this?
Thanks in advance
Sara