Home All Groups Group Topic Archive Search About

Pressing enter key in a text box somtimes presses the last button!

Author
21 Feb 2006 11:18 AM
Jon Bev
I have written a program in VB.net that sometimes has a problem with
pressing the enter key in a multiline textbox. Sometimes it will press
the button that you last clicked on the form instead of adding a new
line.

Can anyone help?

Bev

Author
21 Feb 2006 11:30 AM
Ken Tucker [MVP]
Hi,

        Make sure the textboxes AcceptsReturn property is set to true.

Ken
------------------
Show quoteHide quote
"Jon Bev" <j**@norfolkcottages.co.uk> wrote in message
news:1140520717.717905.90430@o13g2000cwo.googlegroups.com...
>I have written a program in VB.net that sometimes has a problem with
> pressing the enter key in a multiline textbox. Sometimes it will press
> the button that you last clicked on the form instead of adding a new
> line.
>
> Can anyone help?
>
> Bev
>