且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何可以选择所有文本中的Windows窗体的文本框?

更新时间:2023-12-06 16:33:10

您可以使用内置在用于此目的的方法。

You can use the built in method for this purpose.

textBoxResults.SelectAll();
textBoxResults.Focus(); //you need to call this to show selection if it doesn't has focus