Hard, painful bump above eye under eyebrow?

Hordeolum. It could be hordeolum, an eyelid infection. Hot compresses 4 times a day can resolve it, but it might take 4-6 days for it to be resolved completely. In severe cases, patient might need an antibiotic in ointment or ophthalmic drops.
Painful bump. This is probably a sty or chalazion. It is an infected gland. Warm compresses 2xdaily can be helpful the first several days. If no change this should be seen by an ophthalmologist and treated.