Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I was use the blow line in vb.net
VB
List_view_name.Items(List_view_name.Items.Count - 1).SubItems.Add("")

now I'm using C#
my code
C#
list_View_Name.Items(list_View_Name.Items.Count-1).SubItems.Add("");


What I have tried:

there is an error appears told me :

Non-invocable member 'System.Windows.Forms.ListView.Items' cannot be used like a method.

how to solve this problem
Posted
Updated 12-Apr-16 22:24pm

1 solution

equivalent c#

C#
list_View_Name.Items[list_View_Name.Items.Count - 1].SubItems.Add("");
 
Share this answer
 
Comments
medo67866 13-Apr-16 6:55am    
Thanks
Karthik_Mahalingam 13-Apr-16 6:56am    
welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900