473,385 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Shdocvw scroll

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
7 4094
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
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
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
Cor
Sorry,
Totaly misreaded your question, don't know why
Cor
Nov 20 '05 #5
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Hautzendorfer | last post by:
Hello, I'm currently working on some printing stuff: I have to print out several .xml files using a stylesheet. Therefor I choose the Internetexplorer PlugIn via SHDocVW. My problem: After...
0
by: Jaime | last post by:
Hi, I'm trying to add a link to the Document Actions window on a smart document I'm writing. I've followed the instructions on the Smart Doc SDK's tutorial but it seems that a specific line is...
3
by: Wiktor Zychla | last post by:
I have a problem I cannot solve. My application hosts IE activex control. I follow the standard procedure: I just aximp shdocvw.dll. Note that this gives you two files: axshdocvw.dll and...
2
by: Or Lavy | last post by:
Hi there, As mentioned in message "aximp of shdocvw.dll -> problem with ShellExecute" posted before, aximp creates two files: AxSHDocVW.dll SHDocVW.dll The second has the same name as the...
5
by: Jurate | last post by:
I created a class library that has Microsoft Web browser ActiveX component. I am using this class library from a COM client -javascript command var mycomponent = new...
4
by: Lars-Erik Aabech | last post by:
Hi! I've been walking in extacy since reading the article about test automation with IE in the latest MSDN mag. (http://msdn.microsoft.com/msdnmag/issues/05/10/TestRun/default.aspx) After a...
3
by: Jay A. Moritz | last post by:
I have an application that loads IE and iterates through web pages to retrieve information from the page then activates specific controls to retrieve the next page and iterate through that page for...
4
by: Dick Sutton | last post by:
I am so close, yet oh so far! Here's the problem: I want to load a string variable that contains HTML into an instance of SHDocVw.InternetExplorer. Here's what I have so far: Function...
5
by: SQACSharp | last post by:
I'm trying to automate an action in Internet Explorer.... I'm trying to click an image that open a popup menu. The html code of the iimage look like like <img blabla..OnClick="ShowMenu()"/> I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.