Hi,
Someone not so long ago has writed some example for thread safe ListBox Add
method, this nice code was :
delegate void AddToListBoxDelegate(String item);
// ...
if(listBox.InvokeRequired)
{
// Called from another thread ...
_listBox.Invoke(new AddToListBoxDelegate(Add,new Object[] {"Hello"}));
}
else
{
_listBox.Items.Add("Hello");
}
// ...
public void Add(String item)
{
_listBox.Items.Add(item);
}
Thanks to Aravind !
Now, when we should make controls thread safe, I assume that ever one single
method should be thread-safe in such a way. My thought go right that:
1. so let's make a nice overide classes for this controls
2. hey, there is so many of these
3. hym... there must be some one who did it ;-)
So, is 1.2 Framework ship with this ? Or maybe someone know a pack o classes
made exacly for this purpose ??
Any help needed, please ;-)
--
regards
stic