What's the Best Way to Raise Prices?

These days, almost everyone’s doing it. What’s worked for you? Do you warn customers/clients in advance? Or do you just do it? Do you need to explain? Or does everyone understand at this point? Are you just trying to keep up with your own expenses? Or is this an opportunity to improve your margins? What have you learned?