Hi guys I made a program using VB and I lost all the codes but I had the exe file how i can extract the codes from the exe ?
Assuming your exe is a .NET assembly (you tagged the question as VB.NET), you can reverse engineer your exe using tools such as Reflector.
If it's VB.NET you can use the RedGate Reflector tool and the FileDisassemler plugin to generate the source code. That is if the exe was not obfuscated
Have you tried Salamander, or one of the many other .net decompilers?
Since you tagged your question vb.net you might be able to retrieve quite some portions of your code using a .NET disassembler. For example try Lutz Roeder's .Net Reflector or MS ildasm which comes with the .NET compiler.
Jakob definitely has the write answer for getting your code back as fast as possible.
However once you have it back you should take steps to ensure that you don't ever hit this situation again. The best way is to use a form of Source Code Control to manage the code for your programs. Having the code stored in several places makes it harder for you to lose in the future.
For personal projects I would try one of the following