Get the program to continuously look for E-mails

I'm trying to make a program that will run in the background which is basically a messaging app through email with Visual Studio. It would scan an email address for new email, and when a new one would arrive it would pop up with a form that was invisible with the message in a label and a text box to reply. Once you reply, it would minimize the form and keep scanning. My current problem is that the emails are being read by the bot but not displayed. I know my looping is screwed up and idk what to do to fix it. Code:

Any help would be great!

by 17waldth via /r/csharp

Leave a Reply