I'm sorry you have had a bad experience, buying a home should be fun.
Dealing with banks on foreclosure properties is not as easy as the people on TV would like you to believe. Everything about foreclosure transactions are geared toward the seller (the bank). You need to be sure that you are working with an agent who is experienced with foreclosures and can guide you in every aspect.
That being said, purchasing a foreclosed property can being a very rewarding experience both mentally and financially. If you play your cards right, you can get a great deal. Good Luck.