C# Sharp Bot Resub Help

Thanks a ton, I got it working. But it seems my infitit loop is killing my cpu usage. How can I have my program keep processing messages without needing a cpu intensive loop?