Click here to Skip to main content
16,010,022 members
Home / Discussions / C#
   

C#

 
GeneralRe: Trapping Close Window in C# Pin
Colin Angus Mackay5-Sep-04 1:58
Colin Angus Mackay5-Sep-04 1:58 
QuestionCan i add self explained description to a Method or Function? Pin
cindy0235-Sep-04 0:07
cindy0235-Sep-04 0:07 
AnswerRe: Can i add self explained description to a Method or Function? Pin
Colin Angus Mackay5-Sep-04 2:01
Colin Angus Mackay5-Sep-04 2:01 
AnswerRe: Can i add self explained description to a Method or Function? Pin
Stefan Troschuetz5-Sep-04 2:39
Stefan Troschuetz5-Sep-04 2:39 
GeneralRe: Can i add self explained description to a Method or Function? Pin
Anonymous6-Sep-04 0:06
Anonymous6-Sep-04 0:06 
GeneralRe: Can i add self explained description to a Method or Function? Pin
Stefan Troschuetz6-Sep-04 0:18
Stefan Troschuetz6-Sep-04 0:18 
GeneralSelectedItems Collection foreach loop Pin
eggie54-Sep-04 18:57
eggie54-Sep-04 18:57 
GeneralRe: SelectedItems Collection foreach loop Pin
EssOEss4-Sep-04 20:19
EssOEss4-Sep-04 20:19 
Well, the first thing that comes to mind is that a foreach loop is special. Special in a way that the collection you are foreach-ing must not change during the foreach. So if items are removed, they probably also are not selected anymore and thus are removed from the selected items list. This might work, but should cause an error.

The error is probably because of the foreach. The SelectedItems list is really a list of objects - anything can be the "identifier" of an item.

Try this:

while (listBoxPlaylist.SelectedItems.Count != 0)<br />
{<br />
    this.listBoxPlaylist.Items.Remove(listBoxPlaylist.SelectemItems[0]);<br />
}

GeneralRe: SelectedItems Collection foreach loop Pin
eggie54-Sep-04 20:25
eggie54-Sep-04 20:25 
GeneralRe: SelectedItems Collection foreach loop Pin
Robert Rohde4-Sep-04 20:24
Robert Rohde4-Sep-04 20:24 
Generalaccess frame contents in WebBrowser Pin
Asif Rehman4-Sep-04 16:51
Asif Rehman4-Sep-04 16:51 
GeneralService interact with Windows MFC Pin
brunoconde4-Sep-04 12:11
brunoconde4-Sep-04 12:11 
GeneralRe: Service interact with Windows MFC Pin
EssOEss4-Sep-04 20:25
EssOEss4-Sep-04 20:25 
GeneralRe: Service interact with Windows MFC Pin
Sebastian Schneider5-Sep-04 23:34
Sebastian Schneider5-Sep-04 23:34 
Generaluse dll from dymo Pin
VisualRonny4-Sep-04 9:25
VisualRonny4-Sep-04 9:25 
GeneralDebugging Pin
dbetting4-Sep-04 4:16
dbetting4-Sep-04 4:16 
GeneralAdditional Info Pin
dbetting4-Sep-04 5:08
dbetting4-Sep-04 5:08 
GeneralAdvise on displaying HTML document Pin
Adelm4-Sep-04 2:56
Adelm4-Sep-04 2:56 
GeneralRe: Advise on displaying HTML document Pin
Tomas Petricek4-Sep-04 3:13
Tomas Petricek4-Sep-04 3:13 
GeneralRe: Advise on displaying HTML document Pin
Mr. Rogers4-Sep-04 12:11
Mr. Rogers4-Sep-04 12:11 
GeneralRe: Advise on displaying HTML document Pin
Tomas Petricek4-Sep-04 12:20
Tomas Petricek4-Sep-04 12:20 
GeneralRe: Advise on displaying HTML document Pin
Adelm5-Sep-04 4:37
Adelm5-Sep-04 4:37 
GeneralCrystal reports Problem HElpppp Me Pin
kings_14-Sep-04 0:52
kings_14-Sep-04 0:52 
GeneralRe: Crystal reports Problem HElpppp Me Pin
cjengler5-Sep-04 1:24
cjengler5-Sep-04 1:24 
Generalx86 Op codes and C# Pin
WayneMJ4-Sep-04 0:18
WayneMJ4-Sep-04 0:18 

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.