WebBrowser OCX - Invalid handle. Not initialized or points to a deleted object. (3135)

Richard Clarke

New Member
Hi,

Newbie question!

I have a webbrowser control on a form and it displays a PDF. The application is going onto a touchscreen computer and I need the user to able to scroll through the document.

Have set a variable:-

DEFINE PRIVATE VARIABLE hWebBrowser AS system.windows.forms.htmldocument.

In my method to scroll:-
hWebBrowser = webBrowser1:Document.
hwebBrowser:WINDOW:ScrollTo( 0,300).

Error occurs on the ScrollTo.

Help please!

TIA

Richard
 

Richard Clarke

New Member
Have found the answer.

Set the webbrowser control as the activecontrol
then
System.Windows.Forms.SendKeys:Send( "~{PGUP~}").
System.Windows.Forms.SendKeys:Send( "~{PGDN~}").

Discovered that the ~ character is need to make Progress read then{} as lietral characters.
 
Top