Star formation history and dust content of galaxies drawn from ultraviolet surveys