webbrowser textarea

G

Guest

I have a webbrowser object in an Access from and need to complete a html form
that contains a textarea however on hitting return (from anywhere within the
webbrowser control) the focus is moved to the next tab item on the access form
How can I keep the focus in the Webbrowser control?
 
W

Wayne Morgan

The easiest answer may be to change the behavior for all controls in the
database. Go to Tools|Options|Keyboard Tab and set "Move after enter" to
"Don't move". You can still use Tab to move to the next control.
 
G

Guest

Wayne,
That stops focus moving away but it doesnt send the CR to the control!
How can I 'push' the cr in?
Tom
 
W

Wayne Morgan

The CR will cause the control to "update", just as it would if you moved off
of the control. If you're trying to insert a second line, try Ctrl+Enter.
 
W

Wayne Morgan

I just tried a Data Access Page with a textbox on it. It actually turns out
that just pressing Enter, without the Ctrl, gave me a new line in the
textbox. Is this what you're trying to do?
 
G

Guest

Can I upload an example somewhere?

Wayne Morgan said:
I just tried a Data Access Page with a textbox on it. It actually turns out
that just pressing Enter, without the Ctrl, gave me a new line in the
textbox. Is this what you're trying to do?
 
W

Wayne Morgan

I can't get the Microsoft Web Browser control that comes with 2003 to work
and can't find any instructions for it other than one that says to place it
on a form, nothing that says what to do with it once it is on the form.

Have you tried opening the page in IE to see if the page is capable of doing
what you want?
 
G

Guest

I've checked the page in IE and it works as expected - ie one can put in new
lines quite happily - I can send you the mdb and html or put it up somewhere
for you to play with if you like?
 
W

Wayne Morgan

Ok, let's give that a try. Compact then zip the file and send it to
(e-mail address removed).
 
W

Wayne Morgan

Tom,

I played with it a little and as near as I can tell the problem appears to
be a limitation in the ActiveX control. If that is the case, there probably
is no workaround. The text does wrap if you exceed the width of the box, but
there appears to be no way to force a CR.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top