For the final, compiled code of your application, the short answer is βnoβ. Different tools are able to extract different information from the code (e.g. the forms setups) and there are P code decompilers (see Edgar's excellent link for such tools). However, up to this day, there is no decompiler for native code. I'm not aware of anything similar for other high-level languages either.
Answer from Konrad Rudolph on Stack OverflowVideos
vb6 - Is there a Visual Basic 6 decompiler? - Stack Overflow
Help. Decompile EXE back to VB source code?
encryption - Decompiling a vb.net application - Stack Overflow
VB Decompiler Pro v10.0 + Key: Download Now for Decompiling Visual Basic Applications
Does VB Decompiler support .NET applications?
Can VB Decompiler fully restore my source code?
Which file types and platforms are supported?
For the final, compiled code of your application, the short answer is βnoβ. Different tools are able to extract different information from the code (e.g. the forms setups) and there are P code decompilers (see Edgar's excellent link for such tools). However, up to this day, there is no decompiler for native code. I'm not aware of anything similar for other high-level languages either.
http://www.program-transformation.org/Transform/VisualBasicDecompilers
This link provides a lot of resources for VB6 Decompiling, but it seems like it will depend greatly on what you DO have (do you still have the pre-link Object code [EDIT: er... p-code I mean], or just the EXE?) Either way, it looks like there's something, take a look in there.
Yes. You can decompile your code very easily. .Net Reflector is an excellent tool to do exactly as you describe.
Imagine if you encrypted the code. The runtime on the users computer would still need to decrpyt it to understand it.
Best you could do would be to obfuscate your code.
.net reflector is not free anymore, I recommend telerik JustDecompile, free and very easy to use, a great tool http://www.telerik.com/products/decompiler.aspx . It's able to decompile everything the way you described