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;
using System.Net;
using System.IO;
using System.Threading;
namespace WindowsFormsApplication1
{
public delegate void log(string msg);
public partial class Form1 : Form
{
public event log log_event;
public Form1()
{
InitializeComponent();
log_event += new log(Form1_log_event);
}
void Form1_log_event(string msg)
{
textBox2.Text = textBox2.Text + msg;
}
private void button1_Click(object sender, EventArgs e)
{
log_event("tutaj wywolanie to dziala"); **// <<<<**
Thread tp = new Thread(() =>
{
log_event(" tutaj ta wartosc ma wedrowac do textbox2") ;
**//wywala blad ze nie ma tutaj dostepu kod pisal mi kolega ale nie ma mi teraz jak pomóc a to dość ważna sprawa tylko tego nie potrafie zrobic **
});
tp.IsBackground = true;
tp.Start();
}
}
}
// Co to za tag "problem" ? Ocknij się chłopino. !