tbx.PreviewMouseUp +=
(sender, args) =>
{
TextBox t = (sender as TextBox);
if(t==null) return;
t.SelectAll();
////the condition I met is that after selectall, my screen and mouse are freezed, and the line below can solve it
t.ReleaseMouseCapture();
};
全站熱搜
留言列表