Yes, rubbing your eyes will cause your stye because of the coming bacterium which is invisible. The cyst getting on your eyelid must be caused from the exuberant cells in the eyes. Cyst is commonly known as eye of a needle. The eyelid glands acute suppurative inflammation is often caused by a staph infection, depending on the affected gland tissue and divided into cyst. The cyst department is within and outside the eyelash hair follicle and sebaceous gland inflammation which is in the sty for meibomian gland acute suppurative inflammation. You could use the eyes drops with anti-inflammation to release the symptom and to get rid of the coming bacterium. In addition, you could also do the warm compress to make the eyes feel comfortable. You should stop rubbing your eyes which will also make your eyes get red and feel uncomfortable. You need to have the good rest for the eyes, not sitting in front of the computers for a long time.
Well, of course rubbing eyes can just cause eye stye. First, you should know that a stye is inflammation of the eyelid, and it is usually inside one of the small glands lining the eyelid. And for the causes, in most cases, it is caused by infection from bacteria. So if you rub your eyes with dirty hands, it will just carry bacteria into your eyes, leading to eye infection. At the same time, your eyes will have eye stye. So just stop rubbing your eyes with hands. By the way, according to some researches, eye stye can also lead to redness in the eyes. Also, burning eyes can be possible too.
Ok, it seems that you are really worried about getting an eye stye,because such problem would give rise to a lot of symptoms to your eyes and make you suffer a lot. It is true that an eye stye could be resulted from dirty use of your eyes, for they are derived from bacteria, and you also have to pay attention to how you use your eyes and how you rest your eyes.