Thanks, a picture tells more than a thousand words, and you submitted 2 of them.
The pictures confirm my first suspect, you are using USB connected to your PC, whilst at the same time have a serial to TTL solution connected to pins 0 and 1 and at the other side of that solution connected to the same PC.
Pins 0 and 1 are the same pins on your controller connected to the on board serial to USB solution.
You cannot use these at the same time, use either one of those but not both at one time because that will lead to conflicts as you've found out.
So try again with only the USB cable connected while programming.
So no external power supply (USB's power should be enough for uploading your code) and no MAX232.
Do not use pins 0 and 1 in your code for anything else than serial communications.
If this will not work and your Arduino is still not recognised, try it the other way around:
Disconnect the USB cable, reconnect the MAX232 and the external power supply, and power up.
Point your IDE to the MAX232 at com1.
Press the reset button on your Arduino and hold it.
Start the upload, keeping the button pressed and watch the progress in IDE.
Once you see the IDE telling you the upload actually starts, release the reset button.
I'm not sure you need to cross RX and TX between MAX232 and Arduino so if this still doesn't work, try to change that.
Once you successfully uploaded your code (in whatever way), you can use the MAX232 to connect to your PC or any other device with a com port.
Still do not use the USB cable while he MAX232 is connected to pins 0 and / or 1.
Perhaps you could power your Arduino through a USB wall wart, but that would depend on the make and model of that wall wart.