Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listview manipulation

Status
Not open for further replies.

gazza11

Technical User
Jan 12, 2003
46
AU
I have a listview (lvVehicles) and when a line in the listview is selected (clicked) I change the forecolor of the text in the selected line.
When I initially load the listview my last line in the sub is: lvvehicles.selecteditem = lvVehilces.Listitems(1) ie select the first line.
BUT this does not let me start with a changed line of color. Is there anyway I can force a call to the Sub lvVehicles_Itemclick at the same time as I select the first line.
 
Manually raise the ItemClick event of the listview after selecting the item.

lvVehicles.SelectedItem = lvVehilces.Listitems(1)
lvVehicles_ItemClick lvVehicles.SelectedItem
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top