I have been trying to add some string to some ListBox that i have on my application
( simple winform ) - and i did it in using BeginInboke
myListBox.BeginInvoke(new Action(delegate()
{
myListBox.Items.Add( "some string" ));
}));
After i reading those 3 lines again - and i don't understand why in any example of Cross thread UI that i look on google and on MSDN i don't see any call of EndInvoke ?
Is there some reason to not call the EndInvoke on this case ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…