Error while adding UserControl in Vb .net 2005.

vsugan_work

New member
Joined
May 16, 2006
Messages
3
Programming Experience
Beginner
Hi all,

I tried developing a sample usercontrol in VB .Net 2005. After this, i
tried to use this control in a sample application(Vb .Net 2005) by
adding it as a COM component from the toolbox. I got this error message

and the user control is not added on to the Tool box. The error
message is
"Self registration for
E:\Sugan\SampleDotNetControl\SampleBDotNetControl.tlb failed."

Any idea about what is going wrong? UserControl was built with out any
errors. But i'm not able to add this control in the toolbox of the
sample application.

Any help in this regard appreciated.

Thanks,
Sugan
 
A .NET UserControl is not, and has nothing to do with, a COM component. Any controls and components you create in .NET that you want to be generally available from the toolbox must be created in library projects and compiled into DLLs. You then right-click the toolbox and select Add/Remove, navigate to your DLL and select it, then check all the controls and components it contains that you want to add to the toolbox.
 
Back
Top