If the sebaceous glands and meibomian gland of your eyes suffered a acute pyogenic infection, you may have this kind of disease, it happens just because of infected, so it is not contagious, like a infected wound which on a guy did not have the ability to let another wound on others get infected . It does have such case that if your live with a patient with eye style , you may suffer the disease too. But it is not because of the patient but because of the existing bacteria. So do not worry too much. Usually, it could disappear after 4 or 5 days .You can use a damp and hot towel on your eyes for 20 minutes every day and it will help you recovery. But never try to use some rude ways to broke the stye and not eat excitant food, Fried grilled food. Of course, if the illness gets worse, you had better consult a doctor. This kind of eye disease may be caused by some reasons such as excessive fatigue, emotional tension, oily constitution, Personal hygiene ignored and so on. To prevent recurrence, you should relax yourself and pay attention to personal hygiene.