Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Control actionParameter = default(Control);
- Action<Control> actionInvoke = (val) => {
- //do ui thread protected logic here
- if(val == default(Control))
- return;
- };
- if(InvokeRequired)
- Invoke(actionInvoke,actionParameter);
- else
- actionInvoke(actionParameter);
Advertisement
Add Comment
Please, Sign In to add comment