I'm fairly new to visual basic. I was trying to make a program that generates code for you, based on whatever the user inputs. But whenever I click generate, I get this error "Invalid CastException was unhandled. Conversion from string "//Generated using MAYAN. Minecr" to type 'Double' is not valid." It says it is affected by the line: "
Code_Viewer.TextCodeViewer.Text = "//Generated using MAYAN. MinecraftMayan.tk" + vbNewLine

Here is my source code..

Thanks to anybody who helps! :)

http://pastebin.com/wHBbqK5K

I decided to post it on pastebin, it's easier to read.