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. 7 4109
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.c om"
I have just tried the following and it seems to work ok:
<code>
Dim doc2 As mshtml.IHTMLDoc ument2
doc2 = DirectCast(AxWe bBrowser1.Docum ent, mshtml.IHTMLDoc ument2)
doc2.parentWind ow.scrollBy(0, 300)
</code>
There is also scrollTo as well, for absolute scrolling.
HTH
Charles
"news-server.san.rr.c om" <w@w.com> wrote in message
news:OM******** ******@TK2MSFTN GP09.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.
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
Sorry,
Totaly misreaded your question, don't know why
Cor
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 "sendcomman d"?
--
Herfried K. Wagner
MVP · VB Classic, VB.NET http://www.mvps.org/dotnet
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.i tem("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,
"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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 sending the print command via ExecWB for the
first .xml document either
the preview or the printer selection window occurs
(depending on the passed parameter). This behaviour is ok.
|
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 failing in a
strange way. Any help getting this to work is appreciated. A
reference to SHDocVw has been included and the namespace is being used.
The code below works as expected with the objNav = new
SHDocVw.InternetExplorerClass(); line...
|
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 shdocvw.dll.
And there comes the problem. I reference the libraries from my project. For
this to work, I put the libraries in the same directory as the application.
Now, from my code I try to ShellExecute to a link (to show it in a new
window):
|
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 original dll, and that makes
problems with internet explorer.
The offered solution was disassembly the interops using the ildasm
|
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 ActiveXObject("ShowTrans.ShowTrans");
....
mycomponent.ShowText(tex);
I am getting this error message:
File or assembly name AxInterop.SHDocVw, or one of its dependencies, was not
found.
| |
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 while, I had to find an issue I couldn't solve. (Of course)
If an ASP.NET page uses the smartnav option, the document you get from IE
only contains the viewstate input etc, the scripts and an IFrame.
|
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 it's information,
etc, etc.
I have found many articles from people getting COMException errors when
trying to use Interop.SHDocVw from a windows service, so it's pretty
apparent to me that this is a difficult application to build, but I have...
|
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 ShowMonTaxes(ByVal bTax As Boolean) As Integer
Dim oIE As New SHDocVw.InternetExplorer
' set Internet Explorer properties...
oIE.Left = 225
oIE.Top = 75
|
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 can click the image but my application is "sleeping" until I
manually click an item in the popup menu.
My code :
//--------------------------------//
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |