I've been shown how to scroll the webbrowser display to the bottom
webbrowser..Document.paren
tWindow.sc
rollTo 0,50000
or some big number in that y axis ...
I've seen with a bunch of sites some other scrolling features based on tags, but I'm afraid that HTML is one area I've never gotten into so I don't really understand enough to even try playing with any one of the hundreds of properties or methods of some of these controls -- not that webbrowser has the intellisence to show me them, but I did discover that by adding a reference to Microsoft HTML Object library I can make a document object and set it to that, then play with the intellisense - but thats where I'm buried under too much stuff and very few good examples.
If I set the scrollto value above on my machine to about 180, it will jump all the pages on this site to the orange rivit bar. I see in the innerhtml code, this bar is <TD class=topRivets align=middle width="1%">....
Clearly this is an element, but I cant figure from examples how to scroll to an element (or better yet, how to actually grab this out.)
Lets go a step beyond that:
<TD class=pageHeader>Title: This is where a clever person would think of something to title their queston </TD></TR></TBODY></TABLE>
Or to the first question
<TD class=questionHeader><NOBR
><B>From:<
/B> .......
-------
How can I use this information (consider the questionHeader to be ~unique - the only lines of it are together to describe the person and date, pageHeader>Title: is unique, and there is only one topRivits on the page but it can appear often in the html code...)
How do I relate these things to the Document object sub-objects, properties and methods?
I'm sure that there are collections that get generated of certain things automatically, and these may be in them, but I don't know what to look for or how to look for them.
Once having that information, what is the VB6 code to scroll the view to those objects.
200 pts for some assistance on what these things would be in a Document object, how to get at them - it would be nice to know that information, like at least pointing a blindfolded person into the right direction to walk, it cuts down on the uncertainty quite dramatically, and from there, I can have fun poking around myself -- but sometimes, you just need to know what questions you need to ask before you can get an answer: ESPECIALLY WITH GOOGLE!
+ 100 pts for a general description of how one will scroll the document to a particular area on the page
+ GIVAWAY points for the person with the ability to do that previous part:
200 points for the exact code to jump to EACH of those 3 items describe on this question page.
In other words, drop a webbrowser object into a form, add a command button (or three of them)
link to this page, and let it load normally - no jumping scrolling anywhere.
I have a feeling we're talking about only 2 to 5 lines of code as these objects are supposed to be supercharged with functionality and data.
Press command1 jumps page to the rivits
Press command2 jumps page to the title
Press command3 jumps page to the question header.
IS THIS POSSIBLE?
(I would hope that with only one example, the others are easy, but I want to have enough info to see it in action CLEARLY -- especially if its a lot easier to cut and paste a simple code for the person who knows EXACTLY what to change it to. Three points should provide a clear enough example to know what else there is to learn...