Blood pressure meds and weight gain..

My bp meds were changed a few months back.l ever since then I have been gaining no matter what I eat or dont eat.. Started working out by taking spin classes 2-3 times a week.. No changes.. Any one else have this problem? Any suggestions?