form1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Raider
{
public partial class Form1 : Form
{
delegate void UpdateHandler(string s);
void Update(string n)
{
toolStripStatusLabel1.Text = s;
}
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
namespace Raider
{
class downloader
{
public void download(string url,string fnm)
{
try
{
toolStripStatusLabel1.Invoke(new UpdateHandler(Update), new object[] { "Downloading: "+fnm });
}
catch
{
toolStripStatusLabel1.Invoke(new UpdateHandler(Update), new object[] { "Failed" });
}
}
}
}
syntes slet ikke den kan genkende det man har skrevet