To use Microsoft® DirectX® for Microsoft Visual Basic® in a project, you must first ensure that the project has access to the type library.
To make sure that the project has access to the type library