C# “布尼福框架”;文本框“;选择所有功能缺失?
单击Bunifu框架文本框,然后如何调用“SelectAll()”函数?因为我想选择文本框中的所有文本。请帮助这里有一个快速解决方法C# “布尼福框架”;文本框“;选择所有功能缺失?,c#,bunifu,C#,Bunifu,单击Bunifu框架文本框,然后如何调用“SelectAll()”函数?因为我想选择文本框中的所有文本。请帮助这里有一个快速解决方法 //replace (Bunifu.Framework.UI.BunifuMaterialTextbox) with your specified type of textbox private void SelectAll(Bunifu.Framework.UI.BunifuMaterialTextbox metroTextbox)
//replace (Bunifu.Framework.UI.BunifuMaterialTextbox) with your specified type of textbox
private void SelectAll(Bunifu.Framework.UI.BunifuMaterialTextbox metroTextbox)
{
foreach (var ctl in metroTextbox.Controls)
{
if (ctl.GetType() == typeof(TextBox))
{
var txt = (TextBox)ctl;
txt.SelectAll();
}
}
}
嘿,你总是在帮助我。所以,你是最好的。谢谢。