void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { // Your background task goes here for (int i = 0; i <= 100; i++) { // Report progress to 'UI' thread backgroundWorker1.ReportProgress(i); // Simulate long task System.Threading.Thread.Sleep(150); } }
private void Form1_Load(object sender, EventArgs e) { this.CenterToScreen(); users = usrsrv.ListaUtilizatori();//next 6 lines communicate with database and adds information in 6 lists articles = usrsrv.ListaArticole(); tests = usrsrv.ListaTeste(); userarticles = usrsrv.ListaArticoleUtilizator(); usertests = usrsrv.ListaTesteUtilizator(); fb = usrsrv.ListaFeedback(); existentarticles = usrsrv.IncarcareNumeFisiereExistente();//reads from file int i = 0; foreach (utilizator util in users) { ut.Insert(i,util.username); i++; } this.ActiveControl = textBox1; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)