In your first two sentences, neither -ing word modifies the subject. I consider both of them to be adverbial.
In your third sentence, it is a postmodifier of "note" -- an object complement.
In your fourth sentence, "going" should be "to go". It modifies the noun "chance".
Student or Learner