>How do I access the references collection at runtime?
>
>I have a couple of remote components on my references which I want to update to clients whenever I have a new version installed on the server. In order to remove the old components, I have to know the CLSID they are running under to find the uninstall string on the registry.
>
>Any ideas will be well received and appreciated.
You can't put a reference at runtime.
Your options are:
1- Do late binding instead of early binding if your CLSID change
2- Don't change your component interface and make sure your VB project is set to binary compatibility. When you recompile, VB will keep the same CLSID.