I'd like to use
ThreadPool.Queu eUserWorkItem( new WaitCallback( flashRowColor(d gv) ) );
in a couple of places.
I have a method the callback should use:
private void flashRowColor( object pDataGridView ){...}
I've tried several combinations of using delegate keyword, parameters
for WaitCallback() but nothing seems to work for this scenario. I'm
currently using ParameterizedTh readStart(), which works fine.
But now I want to know how to get QueueUserWorkIt em working. If
QueueUserWorkIt em will work somehow, can I type the "object" parameter
on WaitCallback() as DataGridView to avoid casting the target?
Thanks,
Brett
ThreadPool.Queu eUserWorkItem( new WaitCallback( flashRowColor(d gv) ) );
in a couple of places.
I have a method the callback should use:
private void flashRowColor( object pDataGridView ){...}
I've tried several combinations of using delegate keyword, parameters
for WaitCallback() but nothing seems to work for this scenario. I'm
currently using ParameterizedTh readStart(), which works fine.
But now I want to know how to get QueueUserWorkIt em working. If
QueueUserWorkIt em will work somehow, can I type the "object" parameter
on WaitCallback() as DataGridView to avoid casting the target?
Thanks,
Brett
Comment