The answer is 'use a thread'. Now the question becomes, what are you doing with the input from the stream?
In reply to Re: Do While, While by BrowserUk in thread Do While, While by iea