In my app I have the following code:
void ShowCaptchaWindow(Exception ex)
{
var window = new CaptchaWindow(ex);
window.Left = 800;
window.Top = 500;
window.ShowDialog();
text = window.CaptchaText;
}
This code used to work fine before, but now I got problems with it. Strange thing is that I dont remember that I've changed anything.
When I call the function for the first time - everything is Ok, window is showing and function waits for it to close. But when I call this function for the second time - window doesnt displayed and I immediately goes to the next line.
问题是我在显示应用程序的MainWindow之前显示了CaptchaWindow。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.