Definitions of vainly:

  • adverb:   to no avail
    Example: "The city fathers tried vainly to find a solution"