473,395 Members | 1,677 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,395 software developers and data experts.

GetScrollInfo not working for WebBrowser

Hi all,
I am using GetScrollInfo on webbrowser control of .Net Framework
2.0. I am not getting the scrolling bar info. Following is what I am
doing:

[DllImport("user32.dll", SetLastError = true)]
private static extern int GetScrollInfo(IntPtr hWnd, int n,
ref ScrollInfoStruct lpScrollInfo);

private struct ScrollInfoStruct
{
public int cbSize;
public int fMask;
public int nMin;
public int nMax;
public int nPage;
public int nPos;
public int nTrackPos;
}

ScrollInfoStruct si = new ScrollInfoStruct();
si.cbSize = Marshal.SizeOf(si);
si.fMask = (int)SIF_RANGE;
GetScrollInfo(this.wbTest.Handle, SB_VERT, ref si);

Is there something which I am missing???
Thanks in advance!!!
Mar 3 '08 #1
0 1211

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rlrcstr | last post by:
Can anyone point me to an example of using the GetScrollInfo API call from VB .NET? I've got it coded based on some stuff I've found, but I always get error 126 (The specified module could not be...
1
by: Matthew Hazlett | last post by:
GetScrollInfo works but I can not get setScrollInfo to wrok, it reports Error 6 (Bad Handle). I use the same handle in GetScrollInfo as SetScrollInfo, any ideas? Const SBS_HORZ = 0 Const...
1
by: DK - Minneapolis | last post by:
I am trying to use the Web Browser in a VB .Net windows application to host external web sites. I have a problem when I try and capture one of the document objects events. I used the KB 311284...
0
by: Alex Fu | last post by:
I create a utility class, and call GetScrollInfo(txtHelp, (int)ScrollBarDirection.SB_VERT); txtHelp is a RichTextBox component instance.
4
by: Alex Fu | last post by:
I create a utility class, and call GetScrollInfo(txtHelp, (int)ScrollBarDirection.SB_VERT); txtHelp is a RichTextBox component instance.
0
by: LugPaj | last post by:
Hallo, i am trying to get updates, when the view of a .net webbrowser control is updated. So i implemented the IViewObject of this one and tried to use setadvise, so that a function is called,...
0
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, though i understand how to use the Get/SetScrollInfo(...) API, i could not manage to save and restore the scroll state/position of a ListView in .NET . I call GetSscrollInfo(...) which in...
0
by: Mylo86 | last post by:
Let me explain a little first off. I have been using the webbrowser component for some time now on programs I have compiled. But I have recently run into a wall it seems. All the programs I...
3
by: TedTrippin | last post by:
Hi, Background - I've create a windows application in VS and added a WebBrowser component and all works well. I'm now trying to do this programmatically. My application now listens on a socket...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...

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.