Stop thinking of food as your enemy! It isn't evil!

We need food to survive and it also has the added benefit of being a social and fun thing. You just need to learn how to manage the fun and the nutrition!
Remove yourself from the mindset that food is a treat. I once saw something that said "don't treat yourself with food, you aren't a dog." It really rang true with me. For so long I thought "well I worked hard, I deserve a treat." I still treat myself, but in non-food ways. I buy myself something nice, or give myself time to read or do something. For example, when you lost weight, treat yourself to new clothes!
Learn to savor the taste of your food. You don't need a heaping plate of something to taste it—only a very small amount. The first bite will still taste the same as the last but by limiting yourself to a small amount, you can force yourself to slow down, enjoy your food and say "this tastes good and I will enjoy this because this is all I'm having of it." With that strategy you can go to the potluck, have fun, but still have a reasonable amount of food.
Please remember that food isn't bad or evil. You CAN enjoy it while being healthy