Your code just contains a bunch of global constants. You cannot have globals in
code, so you have to implement a workaround (see, for instance, here: "vb.net global constant"
]). Once that is understood, it is really simple to automatically (or semi-automatically) convert such a piece of code.