Lihonosov
Full Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору vetal71 Т.е. нужно, чтобы после ввода в первый текстбокс нужного значения и нажатия клавиши энтер, фокус перевелся на следующий текстбокс? А возможно обработчик нужно повесить на текстбоксы, а не на главную форму? Добавлено: MSDN: Код: public bool SelectNextControl( Control ctl, bool forward, bool tabStopOnly, bool nested, bool wrap ) | Parameters ctl Type: System.Windows.Forms..::.Control The Control at which to start the search. forward Type: System..::.Boolean true to move forward in the tab order; false to move backward in the tab order. tabStopOnly Type: System..::.Boolean true to ignore the controls with the TabStop property set to false; otherwise, false. nested Type: System..::.Boolean true to include nested (children of child controls) child controls; otherwise, false. wrap Type: System..::.Boolean true to continue searching from the first control in the tab order after the last control has been reached; otherwise, false. Код: if (this.ActiveControl != null) { this.SelectNextControl(this.ActiveControl, true, true, true, true); } |
| Всего записей: 537 | Зарегистр. 05-07-2007 | Отправлено: 18:14 07-10-2008 | Исправлено: Lihonosov, 18:31 07-10-2008 |
|