Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void go_Click(object sender, EventArgs e)
- {
- client.BeginDoMyStuff(myValue, new AsyncCallback(OnEndDoMyStuff), null);
- }
- public void OnEndDoMyStuff(IAsyncResult asyncResult)
- {
- this.Invoke(new MethodInvoker(delegate() {
- // This will throw if we have had an error
- client.EndDoMyStuff(asyncResult);
- }));
- }
Add Comment
Please, Sign In to add comment