procedure TForm1.Timer1Timer(Sender: TObject); var buf: array [0..$ff] of Char; begin GetKeyboardLayoutName(buf); Edit1.Text:=StrPas(buf); end;