Click here to Skip to main content
15,914,594 members
Home / Discussions / C#
   

C#

 
GeneralRe: Split text and Store into Arry List Pin
OriginalGriff7-Aug-09 22:04
mveOriginalGriff7-Aug-09 22:04 
GeneralRe: Split text and Store into Arry List Pin
Abhijit Jana7-Aug-09 22:17
professionalAbhijit Jana7-Aug-09 22:17 
AnswerRe: Split text and Store into Arry List Pin
Arindam Sinha7-Aug-09 21:58
Arindam Sinha7-Aug-09 21:58 
AnswerRe: Split text and Store into Arry List Pin
Mycroft Holmes7-Aug-09 22:07
professionalMycroft Holmes7-Aug-09 22:07 
QuestionCrystal Report Error... Pin
Rahul DSG7-Aug-09 20:19
Rahul DSG7-Aug-09 20:19 
QuestionC# Save Application Layout on application exit and reload it on application start. [modified] Pin
shaktisinh7-Aug-09 18:01
shaktisinh7-Aug-09 18:01 
AnswerRe: C# Save Application Layout on application exit and reload it on application start. Pin
N a v a n e e t h7-Aug-09 18:15
N a v a n e e t h7-Aug-09 18:15 
AnswerRe: C# Save Application Layout on application exit and reload it on application start. Pin
stancrm7-Aug-09 19:17
stancrm7-Aug-09 19:17 
AnswerRe: C# Save Application Layout on application exit and reload it on application start. Pin
Arindam Sinha7-Aug-09 22:03
Arindam Sinha7-Aug-09 22:03 
GeneralRe: C# Save Application Layout on application exit and reload it on application start. Pin
shaktisinh12-Aug-09 3:27
shaktisinh12-Aug-09 3:27 
GeneralMessage Removed Pin
13-Aug-09 0:35
shaktisinh13-Aug-09 0:35 
GeneralRe: C# Save Application Layout on application exit and reload it on application start. Pin
Arindam Sinha15-Aug-09 13:14
Arindam Sinha15-Aug-09 13:14 
GeneralRe: C# Save Application Layout on application exit and reload it on application start. Pin
shaktisinh16-Aug-09 19:40
shaktisinh16-Aug-09 19:40 
GeneralRe: C# Save Application Layout on application exit and reload it on application start. Pin
Arindam Sinha16-Aug-09 22:29
Arindam Sinha16-Aug-09 22:29 
AnswerRe: C# Save Application Layout on application exit and reload it on application start. Pin
Mycroft Holmes7-Aug-09 22:09
professionalMycroft Holmes7-Aug-09 22:09 
QuestionListview Subitems index out of range Pin
iNutR7-Aug-09 16:48
iNutR7-Aug-09 16:48 
AnswerRe: Listview Subitems index out of range Pin
Arindam Sinha7-Aug-09 22:12
Arindam Sinha7-Aug-09 22:12 
You are asking to debug your code.. Poke tongue | ;-P

Anyway, from your code I can suggest some hint..
iNutR wrote:
for (int i = 0; i < accUserPass.Length; i++)
{

foreach (ListViewItem item in lvAccounts.Items)
{

// i defined my variables here

accUserPass[i].SubItems[2].Text = sec;
accUserPass[i].SubItems[3].Text = validpro;

}

}


My observations -
1. Why do you need
for (int i = 0; i < accUserPass.Length; i++)
?
You already have inner foreach which should be enough.
2. If you use only one foreach (after removing the
for
), then you should use the
ListViewItem item
instead of that array of things.

Keep me posted if this helps. Smile | :)

Regards,
Arindam Sinha
MyBlog - http://arindamsinha.wordpress.com/
Please give your feedback on this answer.

AnswerRe: Listview Subitems index out of range Pin
Mycroft Holmes7-Aug-09 22:16
professionalMycroft Holmes7-Aug-09 22:16 
QuestionUsing XML as a data source Pin
Rafone7-Aug-09 11:36
Rafone7-Aug-09 11:36 
AnswerRe: Using XML as a data source Pin
Henry Minute7-Aug-09 15:31
Henry Minute7-Aug-09 15:31 
GeneralRe: Using XML as a data source Pin
Rafone7-Aug-09 17:17
Rafone7-Aug-09 17:17 
AnswerRe: Using XML as a data source Pin
Rafone7-Aug-09 18:29
Rafone7-Aug-09 18:29 
QuestionFormat date mm/dd/yyyy Pin
Wheels0127-Aug-09 9:08
Wheels0127-Aug-09 9:08 
AnswerYou can cheat it a little Pin
Ennis Ray Lynch, Jr.7-Aug-09 9:16
Ennis Ray Lynch, Jr.7-Aug-09 9:16 
GeneralRe: You can cheat it a little Pin
Wheels0127-Aug-09 9:19
Wheels0127-Aug-09 9:19 

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.