| | |
Listview
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2006
Posts: 1
Reputation:
Solved Threads: 0
Hello Friend!!!! Here is the solution....using EnsureVisible!! Try with this:
Private Sub Form_Load()
With ListView1
.View = lvwReport
.ColumnHeaders.Add , , "TEST"
.ListItems.Add 1, , "5"
.ListItems.Add 1, , "4"
.ListItems.Add 1, , "3"
.ListItems.Add 1, , "2"
.ListItems.Add 1, , "1"
Set .SelectedItem = .ListItems(1)
.SelectedItem.EnsureVisible
End With
End Sub
Private Sub Form_Load()
With ListView1
.View = lvwReport
.ColumnHeaders.Add , , "TEST"
.ListItems.Add 1, , "5"
.ListItems.Add 1, , "4"
.ListItems.Add 1, , "3"
.ListItems.Add 1, , "2"
.ListItems.Add 1, , "1"
Set .SelectedItem = .ListItems(1)
.SelectedItem.EnsureVisible
End With
End Sub
•
•
•
•
Hello Friend!!!! Here is the solution....using EnsureVisible!! Try with this:
Private Sub Form_Load()
With ListView1
.View = lvwReport
.ColumnHeaders.Add , , "TEST"
.ListItems.Add 1, , "5"
.ListItems.Add 1, , "4"
.ListItems.Add 1, , "3"
.ListItems.Add 1, , "2"
.ListItems.Add 1, , "1"
Set .SelectedItem = .ListItems(1)
.SelectedItem.EnsureVisible
End With
End Sub
pls help me send me coding at susamudre@yahoo.com
regards
santosh
Hi,
Use this code
Regards
Veena
Use this code
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub cmdShowList_Click() With ListView1 .HideSelection = False .FullRowSelect = True .View = lvwReport .ColumnHeaders.clear .ListItems.clear .ColumnHeaders.Add , , "CHECKING" .ListItems.Add , , "1" .ListItems.Add , , "2" .ListItems.Add , , "3" .ListItems.Add , , "4" .ListItems.Add , , "5" .SelectedItem = .ListItems(.ListItems.Count) .SelectedItem.EnsureVisible End With End Sub
Regards
Veena
![]() |
Similar Threads
- ListView in VB.Net (VB.NET)
- ListView (VB.NET)
- Listview Scroll (C#)
- Add an item to a listview using API (Visual Basic 4 / 5 / 6)
- ListView Doubt ? (C)
- Adding controls into a ListView (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: progress bar
- Next Thread: VB6 Building Access from code
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






