Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
QuestionRe: DataSet Pin
Assaf829-Sep-07 8:40
Assaf829-Sep-07 8:40 
Questionremote access Pin
mkaraoglan9-Sep-07 4:18
mkaraoglan9-Sep-07 4:18 
AnswerRe: remote access Pin
Ermak869-Sep-07 4:34
Ermak869-Sep-07 4:34 
QuestionDataGidView Pin
Assaf829-Sep-07 4:16
Assaf829-Sep-07 4:16 
QuestionCompare listview item Pin
andredani9-Sep-07 3:22
andredani9-Sep-07 3:22 
AnswerRe: Compare listview item Pin
Mark F.9-Sep-07 11:18
Mark F.9-Sep-07 11:18 
GeneralRe: Compare listview item Pin
andredani10-Sep-07 0:37
andredani10-Sep-07 0:37 
GeneralRe: Compare listview item Pin
Mark F.10-Sep-07 3:40
Mark F.10-Sep-07 3:40 
I understand what you are trying to accomplish. You should read up on the properties of the ListView control. When you fully understand the properties you will have no problems accessing and manipulating ListView strings.

The Items collection contains all the indexed items (0,1,2, etc), each Item can have SubItems (0,1,2, etc). For example, suppose I want to get a filepath from the ListViewItem that I have found. The path is the second subitem and the filename is the first subitem.
ListViewItem lvi = fileListView.Items[9];  // tenth item
string filename = lvi.SubItems[1].Text + @"\" + lvi.Text;
Now that I have the string I can do something with it (Compare!?). Be careful when iterating through lists and indexing items. If the you try to access an index that is more or less than the "Count" property of the ListView. It throws an System.ArgumentOutOfRangeException error.

http://msdn2.microsoft.com/en-us/library/system.windows.forms.listview_properties(VS.71).aspx[^]

Look at the examples there too.

Mark
GeneralRe: Compare listview item Pin
andredani10-Sep-07 4:17
andredani10-Sep-07 4:17 
QuestionProblem with LDF files ( database log file ) Pin
Developer6119-Sep-07 2:20
Developer6119-Sep-07 2:20 
QuestionHow to display # using / and % Pin
programming1019-Sep-07 2:16
programming1019-Sep-07 2:16 
AnswerRe: How to display # using / and % Pin
Christian Graus9-Sep-07 2:33
protectorChristian Graus9-Sep-07 2:33 
AnswerRe: How to display # using / and % [modified] Pin
Julian Nicholls9-Sep-07 2:48
Julian Nicholls9-Sep-07 2:48 
QuestionCreating textboxes Pin
garga19-Sep-07 0:40
garga19-Sep-07 0:40 
AnswerRe: Creating textboxes Pin
Giorgi Dalakishvili9-Sep-07 1:07
mentorGiorgi Dalakishvili9-Sep-07 1:07 
Questiondrag and drop in datagridview??????? Pin
San@Coding9-Sep-07 0:14
San@Coding9-Sep-07 0:14 
Questionhow can send a Unicode message with "at command" and gsm ? Pin
B.A8-Sep-07 21:42
B.A8-Sep-07 21:42 
AnswerRe: how can send a Unicode message with "at command" and gsm ? Pin
Giorgi Dalakishvili8-Sep-07 23:34
mentorGiorgi Dalakishvili8-Sep-07 23:34 
GeneralRe: how can send a Unicode message with "at command" and gsm ? Pin
B.A9-Sep-07 19:18
B.A9-Sep-07 19:18 
GeneralRe: how can send a Unicode message with "at command" and gsm ? Pin
Giorgi Dalakishvili9-Sep-07 20:36
mentorGiorgi Dalakishvili9-Sep-07 20:36 
QuestionKey Presses Pin
ahojed8-Sep-07 21:00
ahojed8-Sep-07 21:00 
AnswerRe: Key Presses Pin
Ermak868-Sep-07 22:50
Ermak868-Sep-07 22:50 
AnswerRe: Key Presses Pin
Giorgi Dalakishvili8-Sep-07 23:23
mentorGiorgi Dalakishvili8-Sep-07 23:23 
GeneralRe: Key Presses Pin
ahojed9-Sep-07 4:14
ahojed9-Sep-07 4:14 
GeneralRe: Key Presses Pin
Giorgi Dalakishvili9-Sep-07 4:40
mentorGiorgi Dalakishvili9-Sep-07 4:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.