High blood pressure, diabetes, smoking and obesity all increase your risk of developing dementia. Unfortunately, aging is the biggest risk factor of all. The longer you live, the greater the chance of developing dementia.
This is a good article about the kinds of positive lifestyle changes that may help delay dementia.