Where did you base your code on when don’t or didn’t have a reference to vbRichclient in your project??

https://www.vbrichclient.com/#/en/About/