The text "lblDate.Content" disappears when I use the sleep timer to close the window. How do I get that text to display? The rest of the window / text is shown I'm opening a window to other ways of autoconfiguration.
Public viewer DisplayErrorMessage (string message) {// error message text box text box1.Text = message; Show (); // show and log message message lblDate.Content = "This error has been logged and an administrator has contacted:" + DateTime.Now; // auto shutdown window system threading. Thread Sleep (3000); This.Close (); }
Maybe updating Application.DoEvents () Can Your Drawing of Controls Help?
Comments
Post a Comment