White gloves of kid, dog skin, or Berlin cotton, are worn with white tie, court dress, or full dress military, naval, or civil uniform. They are not removed when shaking hands, especially when shaking hands with a lady (a gentleman never places his sweaty palm in a lady's hand, or on her back when dancing).

If a gentleman is attending a dinner, he removes his gloves before going to table. If there is dancing after the dinner he is not expected to put his gloves back on, but may if he so chooses.

Okay, those are the rules. But in the real world most, if not all, gentlemen dispense with white gloves when wearing white tie. The exception would be when attending a ball on the continent, when white gloves are expected/required.

My personal take on white gloves is that I would only wear them if the invitation stipulates "White Tie-- Decorations". The wearing of medals with white tie indicate that the event is the fullest of formal events, and in the UK may also indicate the presence of a member of the Royal Family. (Although strictly speaking the presence of a royal should be mentioned in the body of the invitation.)

If the invitation merely says "White Tie", then the gloves are off, but discretely tucked into the pocket of my tails, just in case.

Gloves are never worn with civilian black tie.