Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / May 2008



Tip: Looking for answers? Try searching our database.

Is there a message for ListView equivalent to LB_SETTOPINDEX for ListBox?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Howard Kaikow - 20 May 2008 05:53 GMT
Is there a message for ListView equivalent to LB_SETTOPINDEX for ListBox?

The following is in Load event;

   With lvwOutput
       hwndLVOutput = .hwnd
       .ColumnHeaders.Add , , "Some Title", .Width, lvwColumnLeft
'        .View = lvwList
       .View = lvwReport
   End With

Note that the header is not getting displayed. I do not know why.

Is there a ListView equivalent for the following?

   lngLB_GetCount = SendMessage(hwndLst, LB_GETCOUNT, ByVal 0&, ByVal 0&)
   SendMessage hwndLst, LB_SETTOPINDEX, lngLB_GetCount - 1, ByVal 0&
Howard Kaikow - 20 May 2008 07:54 GMT
Problem solved.

I can use the EnsureVisible method on the item.

But, the display is poor as the listview does not update until prog is done.
So I have to insert a Referesh method for the ListView after each
EnsureVisible.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.