Meds, diet and exercise. It's working but I'm a recent inductee myself and haven't quite got there yet.
I went whole hog and am on a low carb, low sugar, low fat, low salt diet. I don't bother with calories, but I have cut way down on a great many things, like bread, spuds, pasta and rice, when I do have them it's a very small portion and I bulk the meal out with lots of veg, especially green things like broccoli, asparagus, cabbage, courgettes and so on. I try and replace things like spuds with sweet potato, or mashed swede and carrot. I replaced butter with Olivio and use olive oil for cooking and salad dressings. I drink loads of tea because it seems to help keep my numbers down. I'm not being all SS about it, I'm allowing myself the odd treat, like a piece of apple pie or some ice cream once in a while. Life wouldn't be worth living otherwise. I go out and walk for about an hour a day, weather and the dog permitting.
In about three months, my HbA1c has come down from 11.7 to 7.7 and I've lost around 6 kilos in weight.