No easy answer!
For weight maintenance, google up the national weight control registry - it has info regarding people who've lost significant amounts of weight - and kept it off for a significant length of time.
Surgery isn't a walk in the park, and you will likely be advised to lose weight
before even having surgery! read anne fletcher's book, "thin for life" for great advice. Good luck with a tough problem.