Re: multi-channel download - WeOnlyDo Discussion board

Re: multi-channel download (General questions)

by Shakeeb Ahmed, Tuesday, September 11, 2007, 13:17 (6283 days ago) @ woddrazen

private void button1_Click(object sender, EventArgs e)
{
string email = , pass = ;
string url = @ http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;

if ((masterindex > 5 || masterindex == 0) && masterindex < acList.Count)
{
for (int i = 0; i < 5; i++)
{
// http.Index = i;
email = this.listView1.Items.SubItems[0].Text;
pass = this.listView1.Items.SubItems[1].Text;
http = new wodHttpDLXClass();
http.Request.FormPost.RemoveAll();
http.Request.Cookies.RemoveAll();
http.Request.UserAgent = @ Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 ;
http.Compression = true;
http.AutoRedirect = true;
http.Done += new _IwodHttpDLXEvents_DoneEventHandler(http_done);
http.Request.FormPost.Add( Login , );
http.Request.FormPost.Add( email , email);
http.Request.FormPost.Add( password , pass);
http.Request.FormPost.Add( Submit , Submit );
http.Post(url);
this.listView1.Items.RemoveAt(i);

this.textBox1.Text += email + : + pass;
this.textBox1.Text +=
;
}
}
}

void http_done(int ErrorCode, string ErrorText)
{
//here where i want a index to know which request is done..
}

in VB6 code i see this

Private Sub http_Done(Index As Integer, ByVal ErrorCode As Long, ByVal ErrorText As String)

[quote]Oleg,


Are you using Fast notification interfaces in C#?


Drazen[/quote]


Complete thread: