Z
zleug
Guest
Hi All.
I developed code to delay message.
txtDelay.Text = "Data successfully updated.";
var timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(3);
timer.Tick += delegate
{
txtDelay.Text = String.Empty;
};
timer.Start();
Now when click button Update the data is updated and form is close. I would like to close the form after delay message. How to modify code for that?
Thanks.
Continue reading...
I developed code to delay message.
txtDelay.Text = "Data successfully updated.";
var timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(3);
timer.Tick += delegate
{
txtDelay.Text = String.Empty;
};
timer.Start();
Now when click button Update the data is updated and form is close. I would like to close the form after delay message. How to modify code for that?
Thanks.
Continue reading...