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.

Recommended Answers

All 2 Replies

Use & instead of + to concatenate strings

I can't thank you enough! :)

Thanks! :)

Oh, and thanks again!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.