The first thing to do is to make sure they are not wet when added to a pan. Also, add them to a heated pan so that they start cooking immediately and not have a chance to "sweat" in the pan. Also, don't add salt until the end. Salt draws out the water and make mushroom even more soggy.