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 ?
Control.…Invoke
andTDelegate.…Invoke
ought to be on MSDN. -- I'd only suggest that you explain about WPF/Silverlight'sDispatcher
in a side-note, since it doesn't exist in Windows Forms (which is the context of this question). – Stercoraceous