Calling .DLL file

I have created a .dll file in VB.net. Now i am trying to call that .dll file in Navision, but while i am going to register that .dll file in Navision by using Tools->Custom Controls and then brows the .dll file, i am getting the following error “Could not register the OLE control”. Can anybody give a solution to overcome the problem. Thanks in advance.

Did you try and register the DLL outside Navision using standard Windows tools (regsvr32 or the like)? I presume the DLL itself is in correct format and contains a valid COM class?