how to disable Enter Key in TextBox Multiline?

Hi all,

I'm just wondering if there is a way to disable the Enter key on a TextBox Multiline

Thanks



Answer this question

how to disable Enter Key in TextBox Multiline?

  • Agson Chellakudam

    If nothing else works, you can catch the keypress event for the control and set handled to true if the enter key was pressed.



  • CarlW

    thanks i got it

    If e.KeyChar = ChrW(13) Then e.Handled = True


  • how to disable Enter Key in TextBox Multiline?