Community discussion forum

carriage return in a webbrowser control

Tags: vb6 Australia
  • 4 years ago

    I have a webbrowser control that points to a website that has an html form in it.  From the users perspective everything works just like internet explorer in the webbrowser control with the exception of putting a carriage return in html form field (textarea).  This control seems to ignore user "carriage returns".  <tabs> work like they should, going from one html field to another within the webbrowser control.

  • 4 years ago

    try using ctrl+enter


    this should enter a carriage return into the text field

  • 4 years ago
    Tried that and several other key combinations(shift-enter,shit-ctl-enter).  They didn't work.
  • 4 years ago
    what website are you loading in the webbrowser control?
  • 4 years ago

    Any webpage with a texteara field will not put a carriage return with ctrl-enter or enter.  Fortunately for me I finally did find a key that would put an enter in this html form field, ctl-m.
    I was working with MS access and here is what I did to make "carriage return" work like it should on a textarea field.


    You set the keypreview to "on" on the main form.
    On the main form put this code on the keyup event


    if keycode = 13 then
     sendkeys "^m"
    end if


    If this has helped anyone send an email to williamhall@brooklyngroup.com.au,
    at least I know I wasnt the only one to run into this problem.

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback