473,385 Members | 1,873 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.

GetScrollInfo(...) work, but SetScrollInfo(...) wont,...

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 turn
gives me the current scroll information of the ListView and then
i call SetScrollInfo(...) and it does not set the position anyway.
I starts at the begining of the ListView and focuses the first element
as if i didnt call anything of the API,...

I do this that way:

ListView.BeginUpdate();
GetScrollInfo(...)
Listview.Items.Clear()
//Build items again, same count!
SetScrollInfo(...)
ListView.EndUpdate()
It just wont work? What do i wrong here?
Regards

Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.codeplex.com/restarts
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."

Oct 18 '08 #1
0 2714

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

Similar topics

0
by: rh | last post by:
Hi, I have a WinForm with a TreeView and a custom scrollbar control that is positioned over (hides) the TreeView's own default ScrollBar. I use SetScrollInfo to update the TreeView's default...
5
by: Mr Newbie | last post by:
Debug.Assert( False, "Why wont I display ??") I am trying to use this in my code but it wont display. The app is running on my local machine and the above code under a button click event. What...
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...
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.
3
Frinavale
by: Frinavale | last post by:
Hi there, I am currently behind a firewall that wont let me send emails. As a result my smtpClient.send(emailMessage) wont work on my IIS but this method does work through the VisualStudio...
0
by: watashi | last post by:
Hello, This is on socket. i m using tcpclient and tcplistener task is when the "Active " button is pressed according to user choice tool should work as server or client. when "Inactive"...
0
by: Mohit | last post by:
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: private static extern int...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.