That is ask here often, do a search here and you will get your answer, give a thumbs up for the correct answer.
This is a Simple Dialog Demo.