OK i done this. But now the the usercontrol myuser1 doesn;t show in the form.What is going wrong;
Printable View
OK i done this. But now the the usercontrol myuser1 doesn;t show in the form.What is going wrong;
Are you setting the visible property of the dynamically added control to true explicitly??? It's False by default...
I know that, but the usercontrol itselft it hasn't the property of visible. How could i declare dynamically(inside of the class module) the property of the visible true if this property does't exist. This property exist only when i put the usercontrol myuser1 into the form(frm1). Any suggestion?
Do you mean that the control you made doesn't have the visible property?? I think it's common( and essential sometimes) that u give such properties... well...if your control doesn't have the property, does it have hwnd property??? I am afraid you'll have to use API..
I can't understant what do you mean by saying that the visible property is only available on Form??? if the visible property is there it must also be present in Code (unless you specify Design time-only)
Could u be clearer?