procedure TForm1.Edit1Change(Sender: TObject);
begin
   if Sender is TCustomEdit then
   with Sender as TCustomEdit do
   if edit1.MaxLength = GetTextLen then
     self.SelectNext(TCustomEdit(Sender), true, true) ;
end;

posted on 2012-12-05 11:49  许小东  阅读(102)  评论(0编辑  收藏  举报