What is the easiest way to clear the text out of a HtmlInputText or HtmlTextArea control within csharp code?
Currently we are using the following coding logic, but I would prefer something cleaner.
Currently we are using the following coding logic, but I would prefer something cleaner.
Desktop desktop = new Desktop();
desktop.KeyBoard.KeyPress(Keys.Back, 1, repeatCount);
desktop.KeyBoard.TypeText(text, 2, 0);