More out of curiosity than anything else... can't you use IE to display a message? That would save you moving any code about?
I haven't anything handy that would do what you want (my c# stuff is TOO big) but I could suggest codeproject or codeguru for a routine or two. Both have some similar items that code give you enough to 'tweak'.
Regards
Michael Hawksworth