Maybe I did something wrong here. But with following
code, the message is not posted.
public delegate void TestEvtHdr();
public event TestEvtHdr TestEvt;
....
this.TestEvt += new TestEvtHdr(Form1_TestEvt);
....
private void button1_Click()
{
TestEvt();
int j = 0;
for(int i = 1; i < 100; i++)
{
if ((j % 4) != 0)
{
j += i;
}
}
}
private void Form1_TestEvt()
{
int i = 1;
}
That is, by clicking on the button, the callstack become:
W3.Form1.Form1_TestEvt()
W3.Form1.button1_Click()
W3.Form1.Main()
-----Original Message-----
Normal event handling should do it.
Just subscribe to the event and process it.
"Daylor" <ro******@hotmail.com> wrote in message
news:bs**********@news2.netvision.net.il... how , can i post message to other thread in net ?
is there somthing with net that i can do ?
or i need 2 use win32 api's ?
.