Hey y'all..
So Im struggling with getting going with some .NET concepts. I have written a small POP3 class that appears to work because I can return values from it using message boxes. I just need to know how to populate form controls such as text boxes. So looking at my example, how would I populate "textBox1" on "Form1" with the contents of the varible numMessages?
Just trying to get my feet wet.. any assistance would be rad.
Thanks
CODE
try
{
Pop3 obj = new Pop3();
int numMessages = 0;
string newMess;
obj.Connect("servername", "username", "password");
ArrayList list = obj.List();
foreach (Pop3Message msg in list )
{
Pop3Message msg2 = obj.Retrieve(msg);
numMessages = numMessages + 1;
}
This post has been edited by SpudNik867: 18 Mar, 2008 - 02:51 PM