In an other topic a guy gave me a good explanation, Leandro.
Like the example that Junior wrote, we have to put gerund form after a preposition.
Good luck, because I'm working hard in this part and it's not so easy to record the rules..rs..We have to practice. And this is not so easy either.