Shdocvw scroll

  • Thread starter Thread starter news-server.san.rr.com
  • Start date Start date
N

news-server.san.rr.com

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.
 
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]
 
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
 
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
 
Hello,

Cor said:
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,
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
 
Hello,

[Webform control focus problem]

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

:-(
 
Back
Top