When followed by an infinitive with to (to + verb 1) shows that the event has not yet been made.But when it's followed by a gerund (v.ing), it indicates that the event has made.
When followed by an infinitive with to (to + verb 1) showed significant events that have not yet done , but when followed by a gerund (v.ing) shows that the event has already been done.