Click here to Skip to main content
15,918,211 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Programs by Microsoft, Not Borland. Pin
Alex Korchemniy8-Nov-04 17:22
Alex Korchemniy8-Nov-04 17:22 
QuestionWay to avoid Events to be sent ? Pin
fickdb8-Nov-04 14:38
fickdb8-Nov-04 14:38 
AnswerRe: Way to avoid Events to be sent ? Pin
Alex Korchemniy8-Nov-04 18:41
Alex Korchemniy8-Nov-04 18:41 
AnswerRe: Way to avoid Events to be sent ? Pin
Stefan Troschuetz8-Nov-04 21:34
Stefan Troschuetz8-Nov-04 21:34 
GeneralRe: Way to avoid Events to be sent ? Pin
fickdb9-Nov-04 0:10
fickdb9-Nov-04 0:10 
Generalradiobutton and checkbox in c# Pin
youssef8-Nov-04 14:20
youssef8-Nov-04 14:20 
GeneralRe: radiobutton and checkbox in c# Pin
Alex Korchemniy8-Nov-04 16:54
Alex Korchemniy8-Nov-04 16:54 
GeneralRe: radiobutton and checkbox in c# Pin
Kiran Satish8-Nov-04 20:11
Kiran Satish8-Nov-04 20:11 
QuestionHow can I use objects created in external program? Pin
rudy.net8-Nov-04 12:30
rudy.net8-Nov-04 12:30 
AnswerRe: How can I use objects created in external program? Pin
Skynyrd8-Nov-04 12:47
Skynyrd8-Nov-04 12:47 
GeneralRe: How can I use objects created in external program? Pin
rudy.net8-Nov-04 20:57
rudy.net8-Nov-04 20:57 
AnswerRe: How can I use objects created in external program? Pin
Nick Parker8-Nov-04 13:16
protectorNick Parker8-Nov-04 13:16 
GeneralVisual C# 2005 express beta - building to use .NET framework 1.1 Pin
Anonymous8-Nov-04 11:16
Anonymous8-Nov-04 11:16 
GeneralRe: Visual C# 2005 express beta - building to use .NET framework 1.1 Pin
Nick Parker8-Nov-04 13:20
protectorNick Parker8-Nov-04 13:20 
GeneralRe: Visual C# 2005 express beta - building to use .NET framework 1.1 Pin
Alex Korchemniy8-Nov-04 18:59
Alex Korchemniy8-Nov-04 18:59 
GeneralRemoting question Pin
Skynyrd8-Nov-04 11:08
Skynyrd8-Nov-04 11:08 
GeneralRe: Remoting question Pin
Alex Korchemniy8-Nov-04 16:51
Alex Korchemniy8-Nov-04 16:51 
GeneralRe: Remoting question Pin
Skynyrd9-Nov-04 5:41
Skynyrd9-Nov-04 5:41 
GeneralContextMenu Problem...! Pin
QzRz8-Nov-04 10:22
QzRz8-Nov-04 10:22 
GeneralRe: ContextMenu Problem...! Pin
Skynyrd8-Nov-04 11:41
Skynyrd8-Nov-04 11:41 
GeneralRe: ContextMenu Problem...! Pin
QzRz9-Nov-04 5:28
QzRz9-Nov-04 5:28 
GeneralProgrammatically Removing MenuItems from within a Menu Pin
Peter Vertes8-Nov-04 9:32
Peter Vertes8-Nov-04 9:32 
GeneralRe: Programmatically Removing MenuItems from within a Menu Pin
Tom Larsen8-Nov-04 10:46
Tom Larsen8-Nov-04 10:46 
In general its very very bad to modify the enumeration while looping over it. I emplore you to never ever doing this.

If you must do a pattern like this break it up into two steps: collect all of the data you are going to remove in one loop, remove them in another loop.

ps. Why are you doing the loop? If you want to clear it why not do MenuItemCollection.Clear()?
GeneralRe: Programmatically Removing MenuItems from within a Menu Pin
Peter Vertes8-Nov-04 10:57
Peter Vertes8-Nov-04 10:57 
QuestionCollection Question..???? Pin
Besinci8-Nov-04 8:35
Besinci8-Nov-04 8:35 

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.