...which says to put the license checkout code in the form's Sub New() just before the call to InitializeComponent()
So I did that, ran it, and it bombed again with same message.
I attached the project so you could see for yourself. I also attached a pic of the relevant code. Notice in the immediate window that i have licenses.
I don't know how to get this to work programmatically.
I do NOT want to use a license control because of the nature of our application. People need to be able to start the application and use parts of it other than the map without checking out a map license, and the only way to do that is programmatically check out the license just before it's needed.
Create a "Windows Application (Engine)" and I think you'll see that the binding must be a target of the ResolveBindingEvent. You can't just do it and be done. You must set up the mechanism so it can be checked when necessary.