Setfocus to last position or character

Sorry guys I am asking really basic questions but I do really google them before posting here.

  • How to move cursor (setFocus) to last position of the text in a textField ?
  • Also, how to prevent the system from beeping when ENTER (char 13) is detected in a KeyDown event ?

Thanks

textfield1.selstart = len(textfield1.text)

As for the enter key, make sure you return True in the KeyDown event.

Ahhh! SelPos, ok ok :slight_smile: thanks

edit: SelStart