How can I highlight all text in text field?

  • Автор темы Автор темы Harambulus
  • Дата начала Дата начала

Harambulus

Client
Регистрация
16.09.2011
Сообщения
365
Реакции
10
Баллы
18
I was told id have to do a c## thing for that. but i know nothign about that shit.

I was told that this info is on the forum but i search and couldnt find that shit.

I have a text field which i want to first delete the data in the field (email replies)before putting my own text in.

curreently im using millions of {delete} in kb emulation but that is time consuming plus it is not convenient when there may be a large email. i have to make the process longer for everyhting taking many more seconds just for the long emails and multiply up it really grinds the template to a snail pace.

So how to doa simple ctrl + A highlight all command?
 
Код:
Развернуть Свернуть Копировать
HtmlElement he = instance.ActiveTab.FindElementByAttribute("input:text", "outerhtml", "Subject", "text", 0);
// check the element
lock(SyncObjects.InputSyncer)
{
System.Windows.Forms.SendKeys.SendWait("^a");
}

you will have to replace the element attributes with the ones that match the box you are trying to highlight all the text in.

And here is the forum post that discusses this...

http://zennolab.com/discussion/showthread.php?9511-Как-очистить-форму&p=55058&viewfull=1#post55058
 
  • Спасибо
Реакции: Harambulus

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)