You need to run the contact launching code in a new thread, or consider using a background worker to start your FindContactEmailByName method.
Here's a tutorial on the background worker:
http://dotnetperls.com/Content/Backg...roduction.aspx
Basically, when you show a new form like that, the "owner" form that launches the contact.Display(true) call blocks until the contact is closed, or control is returned to the calling form.
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
Offline 2,519 posts
since Dec 2003