Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Format date mm/dd/yyyy Pin
musefan7-Aug-09 9:16
musefan7-Aug-09 9:16 
GeneralRe: Format date mm/dd/yyyy Pin
Wheels0127-Aug-09 9:20
Wheels0127-Aug-09 9:20 
GeneralRe: Format date mm/dd/yyyy Pin
musefan7-Aug-09 9:47
musefan7-Aug-09 9:47 
GeneralRe: Format date mm/dd/yyyy Pin
PIEBALDconsult7-Aug-09 10:45
mvePIEBALDconsult7-Aug-09 10:45 
GeneralRe: Format date mm/dd/yyyy Pin
Mycroft Holmes7-Aug-09 22:32
professionalMycroft Holmes7-Aug-09 22:32 
GeneralRe: Format date mm/dd/yyyy Pin
PIEBALDconsult8-Aug-09 6:50
mvePIEBALDconsult8-Aug-09 6:50 
AnswerRe: Format date mm/dd/yyyy Pin
Mycroft Holmes7-Aug-09 22:34
professionalMycroft Holmes7-Aug-09 22:34 
Questionconnections strings in Linq Pin
Chazzysb7-Aug-09 8:57
Chazzysb7-Aug-09 8:57 
AnswerRe: connections strings in Linq Pin
Super Lloyd7-Aug-09 14:58
Super Lloyd7-Aug-09 14:58 

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.