Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
QuestionUpdate Resource(.resx) file Pin
Krishnraj7-May-08 0:14
Krishnraj7-May-08 0:14 
AnswerRe: Update Resource(.resx) file Pin
LongRange.Shooter7-May-08 4:34
LongRange.Shooter7-May-08 4:34 
GeneralRe: Update Resource(.resx) file Pin
Krishnraj7-May-08 20:37
Krishnraj7-May-08 20:37 
GeneralRe: Update Resource(.resx) file Pin
LongRange.Shooter8-May-08 3:22
LongRange.Shooter8-May-08 3:22 
GeneralRe: Update Resource(.resx) file Pin
LongRange.Shooter8-May-08 4:45
LongRange.Shooter8-May-08 4:45 
GeneralRe: Update Resource(.resx) file Pin
Krishnraj11-May-08 23:57
Krishnraj11-May-08 23:57 
AnswerRe: Update Resource(.resx) file Pin
Mahmoud Kohansal13-Sep-13 19:55
Mahmoud Kohansal13-Sep-13 19:55 
Questioncollection was modified enumeration may not execute Pin
csp7-May-08 0:13
csp7-May-08 0:13 
protected void btnright_Click(object sender, EventArgs e)
{
ListItemCollection listnameitems = lstboxnames.Items;
foreach(ListItem itmname in listnameitems)
{
if (itmname.Selected == true)
{
lstboxphone.Items.Add(itmname.Text);
listnameitems.Remove(itmname);
}
}

}

this is my code to select list box items of one listbox to other listbox.the items must get removed from the listbox where the items are added from.
The add method is working but when i remove the items it is showing a msg box with "collection was modified enumeration may not execute ".
Can any one help where iam doing mistake.
AnswerRe: collection was modified enumeration may not execute Pin
Christian Graus7-May-08 0:16
protectorChristian Graus7-May-08 0:16 
GeneralRe: collection was modified enumeration may not execute Pin
csp7-May-08 3:18
csp7-May-08 3:18 
GeneralRe: collection was modified enumeration may not execute Pin
csp7-May-08 3:29
csp7-May-08 3:29 
GeneralRe: collection was modified enumeration may not execute Pin
Christian Graus7-May-08 11:57
protectorChristian Graus7-May-08 11:57 
GeneralRe: collection was modified enumeration may not execute Pin
S. Senthil Kumar7-May-08 3:51
S. Senthil Kumar7-May-08 3:51 
QuestionHow to convert this VBcode to C Sharp Pin
HatakeKaKaShi7-May-08 0:13
HatakeKaKaShi7-May-08 0:13 
AnswerRe: How to convert this VBcode to C Sharp Pin
Krishnraj7-May-08 0:18
Krishnraj7-May-08 0:18 
GeneralRe: How to convert this VBcode to C Sharp Pin
Gareth H7-May-08 4:57
Gareth H7-May-08 4:57 
GeneralRe: How to convert this VBcode to C Sharp Pin
Krishnraj7-May-08 20:43
Krishnraj7-May-08 20:43 
AnswerRe: How to convert this VBcode to C Sharp Pin
Giorgi Dalakishvili7-May-08 0:20
mentorGiorgi Dalakishvili7-May-08 0:20 
AnswerRe: How to convert this VBcode to C Sharp Pin
Christian Graus7-May-08 0:24
protectorChristian Graus7-May-08 0:24 
AnswerRe: How to convert this VBcode to C Sharp Pin
Dave Doknjas7-May-08 14:17
Dave Doknjas7-May-08 14:17 
Questionhow to open .doc file using richtextbox..? Pin
kamalesh57436-May-08 23:28
kamalesh57436-May-08 23:28 
AnswerRe: how to open .doc file using richtextbox..? Pin
Christian Graus6-May-08 23:55
protectorChristian Graus6-May-08 23:55 
AnswerRe: how to open .doc file using richtextbox..? Pin
phannon866-May-08 23:59
professionalphannon866-May-08 23:59 
GeneralRe: how to open .doc file using richtextbox..? Pin
kamalesh57437-May-08 15:59
kamalesh57437-May-08 15:59 
AnswerRe: how to open .doc file using richtextbox..? Pin
Giorgi Dalakishvili7-May-08 0:22
mentorGiorgi Dalakishvili7-May-08 0:22 

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.