public void FillCaptcha() { try { string captcha = string.Empty; if (!string.IsNullOrEmpty(CurrentCaptchaUserName) && !string.IsNullOrEmpty(CurrentCaptchaPassword) && CheckDbcUserNamePassword) { captcha = ResolveCaptchaByCaptchaService(imageBytes, CurrentCaptchaSetting, CurrentCaptchaUserName, CurrentCaptchaPassword); } else { captcha= txtCaptcha.Text; } if (string.IsNullOrEmpty(captcha)) { MessageBox.Show("Please enter the Captcha Value Which you see on Captcha Image"); return; } Emails.EmailFactory hotemail = new Emails.HotmailFactory(); Emails.Email email = hotemail.createEmail(ref webHotmail, captcha, lstFname, lstLname); Username = email.username; Password = email.password; hotmailerStatus = HotmailerStatus.checkforAccountCreation; } catch (Exception ex) { GlobusLogHelper.log.Error("Error : " + ex.StackTrace); } }