Bunifu Framework "Text Box" SelectAll function missing?

1k Views Asked by At

Click on the Bunifu Framework TextBox then how can call the "SelectAll()" function? Because I want to select all text in the TextBox. Please help

1

There are 1 best solutions below

1
Amos Chepchieng On BEST ANSWER

Here is a quick fix

//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();

                    }

                }

            }