Saturday, June 28, 2014

Code handle dari BackgroundWorker.Complete




Code handle dari BackgroundWorker.Complete
private void wrok_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (e.Cancelled)
            {
                MessageBox.Show("Nggak bisa login gan, mungkin koneksi error");
            }
            else if (e.Error != null)
            {
                MessageBox.Show(e.Error.Message);
            }
            else
            {
                MessageBox.Show(e.Result.ToString());
            }
           
        }