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/BackgroundWorker-Introduction.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.
alc6379
Cookie... That's it
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147