if (MessageBox.Show("are you sure to delete?", MessageBoxButton.OKCancel) == MessageBoxResult.Cancel) { Textbox.Focus(); System.Windows.Browser.HtmlPage.Plugin.Focus(); this.Focus(); Dispatcher.BeginInvoke((ThreadStart)delegate { Textbox.Focus(); }); return; Textbox.Focus(); this.Focus(); }
BegingInvoke(new System.Action({} => { TextBox.Focus(); }));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)