This causes a red, painful lump to form as pus collects under the skin. A boil that occurs on the eyelid is called a stye. To treat a boil or stye at home, dermatologists recommend following these ...