By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,162 Members | 1,346 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,162 IT Pros & Developers. It's quick & easy.

Shdocvw scroll

P: n/a
How can I manually send a scroll command to a webbrowser control when the
scroll bars are invisible? I tried the sendcommand but that did not work.
Thanks for the help.
Nov 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Hi,

Scrollbars? No idea.

If you have control over the web page contents, you could insert anchors
within the page and set the location to the page at any given anchor.

Regards,
Fergus
MVP [Windows Start button, Shutdown dialogue]
Nov 20 '05 #2

P: n/a
Hi "news-server.san.rr.com"

I have just tried the following and it seems to work ok:

<code>
Dim doc2 As mshtml.IHTMLDocument2

doc2 = DirectCast(AxWebBrowser1.Document, mshtml.IHTMLDocument2)
doc2.parentWindow.scrollBy(0, 300)
</code>

There is also scrollTo as well, for absolute scrolling.

HTH

Charles
"news-server.san.rr.com" <w@w.com> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...
How can I manually send a scroll command to a webbrowser control when the
scroll bars are invisible? I tried the sendcommand but that did not work.
Thanks for the help.

Nov 20 '05 #3

P: n/a
Cor
Hi x,
I tried the sendcommand but that did not work.


Can you give me a link where I can get information about the sendcommand, I
need a command like that?

Thanks,
Cor

Nov 20 '05 #4

P: n/a
Cor
Sorry,
Totaly misreaded your question, don't know why
Cor
Nov 20 '05 #5

P: n/a
Hello,

"Cor" <no*@non.com> schrieb:
Can you give me a link where I can get information about
the sendcommand, I need a command like that?


What do you mean by "sendcommand"?

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #6

P: n/a
Cor
Herfried,
That was in the message from the OP, but beside of that, maybe you know what
I am looking for, not that I needed it but I always want to fix problems.

In this newsgroup there was someone who wanted to get the focus on a control
in a webform in the same way as on a window form. I did search, but I could
not find a methode.

The only thing I did find (what I already did know), was the tabindex from a
control, but what I did not know (never thought about), was that the 0 index
always on the url line and that after a resend there is no focus. So with
every button click is the the focus gone. (Although that would be on the
button, that is not always the best thing).

I first thougth that you it would be fixable outside the VB.net language,
but I doubt it now.
I know how to set a focus on a control in the page. I did expect that
control.focus() would work, but it did not (maybe something from the used
codepage), but "document.all.item("control").focus" did work fine.

Then I thougth when I have command the same that you can add "document"
attributes in a webform to set a command I could fix it. But I could not
find it, but maybe you know one for a webform.

Cor
Nov 20 '05 #7

P: n/a
Hello,

"Cor" <no*@non.com> schrieb:
[Webform control focus problem]

I think I understand what your problem is but I do not have an answer.

:-(

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.