It can't be legal, because Visual Basic itself is owned by Microsoft.