Click here to Skip to main content
15,867,686 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: listbox Pin
ScottM112-Nov-08 1:23
ScottM112-Nov-08 1:23 
Questionhow to simulate the image layer , like the one in Photoshop Pin
Member 41517587-Nov-08 4:27
Member 41517587-Nov-08 4:27 
AnswerRe: how to simulate the image layer , like the one in Photoshop Pin
Ray Cassick7-Nov-08 4:43
Ray Cassick7-Nov-08 4:43 
GeneralRe: how to simulate the image layer , like the one in Photoshop Pin
Member 415175810-Nov-08 0:15
Member 415175810-Nov-08 0:15 
GeneralRe: how to simulate the image layer , like the one in Photoshop Pin
Thomas Stockwell10-Nov-08 1:16
professionalThomas Stockwell10-Nov-08 1:16 
GeneralRe: how to simulate the image layer , like the one in Photoshop Pin
Dave Kreskowiak10-Nov-08 3:12
mveDave Kreskowiak10-Nov-08 3:12 
QuestionHow to stop installation in Setup Project 2008? Pin
praful_udade6-Nov-08 20:44
praful_udade6-Nov-08 20:44 
QuestionAny way to purge a Dictionary of items meeting some criterion? Pin
supercat96-Nov-08 9:36
supercat96-Nov-08 9:36 
I understand the general difficulty of allowing an enumerable class to be modified within an enumerator. Nonetheless, there are times when it would be very useful to go through a dictionary and purge all items meeting some criterion. While it would be possible to produce a list of the keys of the items to be deleted and then iterate through that list, doing so would seem needlessly complex and expensive.

I've searched for messages related to this subject and none that I've found seem to offer a solution except to note the general difficulties of allowing modification to an object within an enumerator.

What would seem most useful would be to have an object that supported an interface similar to iEnumerable but with the addition of a method RemoveAndMoveNext. Use of that method would remove the currently-selected item from the collection and advance to the next one. It would disqualify any other enumerators that exist to the collection, but would do whatever was necessary to maintain its own correct operation.

An alternative would be to have a ConditionalRemove method which would call a function on all items in the collection and remove those for which the function returns true. Such an approach could work well, but could be a nuisance in languages which don't support anonymous delegates.

Are there any free dictionary-style collections that support anything like either of those suggestions?
AnswerRe: Any way to purge a Dictionary of items meeting some criterion? Pin
PIEBALDconsult6-Nov-08 10:19
mvePIEBALDconsult6-Nov-08 10:19 
GeneralRe: Any way to purge a Dictionary of items meeting some criterion? Pin
supercat96-Nov-08 11:31
supercat96-Nov-08 11:31 
AnswerRe: Any way to purge a Dictionary of items meeting some criterion? Pin
Dave Kreskowiak6-Nov-08 10:23
mveDave Kreskowiak6-Nov-08 10:23 
GeneralRe: Any way to purge a Dictionary of items meeting some criterion? Pin
supercat96-Nov-08 11:14
supercat96-Nov-08 11:14 
GeneralRe: Any way to purge a Dictionary of items meeting some criterion? Pin
Luc Pattyn6-Nov-08 11:39
sitebuilderLuc Pattyn6-Nov-08 11:39 
GeneralRe: Any way to purge a Dictionary of items meeting some criterion? Pin
supercat96-Nov-08 12:14
supercat96-Nov-08 12:14 
QuestionHow to pass arrays as paramter to typed dataset Pin
Member 20986146-Nov-08 1:57
Member 20986146-Nov-08 1:57 
QuestionwebBrowser and transparent background Pin
mdzieg5-Nov-08 7:14
mdzieg5-Nov-08 7:14 
AnswerRe: webBrowser and transparent background Pin
Dave Kreskowiak5-Nov-08 14:00
mveDave Kreskowiak5-Nov-08 14:00 
GeneralRe: webBrowser and transparent background Pin
mdzieg6-Nov-08 1:13
mdzieg6-Nov-08 1:13 
Questionsome problems,help me! Thank you! Pin
bozin5-Nov-08 5:50
bozin5-Nov-08 5:50 
GeneralRe: some problems,help me! Thank you! Pin
Luc Pattyn5-Nov-08 13:52
sitebuilderLuc Pattyn5-Nov-08 13:52 
Questionproblems about datagridview in C# winforms Pin
bozin4-Nov-08 6:03
bozin4-Nov-08 6:03 
QuestionRe: problems about datagridview in C# winforms Pin
led mike4-Nov-08 6:37
led mike4-Nov-08 6:37 
AnswerRe: problems about datagridview in C# winforms Pin
bozin4-Nov-08 6:54
bozin4-Nov-08 6:54 
GeneralRe: problems about datagridview in C# winforms Pin
led mike4-Nov-08 7:31
led mike4-Nov-08 7:31 
AnswerRe: problems about datagridview in C# winforms Pin
nelsonpaixao7-Nov-08 14:37
nelsonpaixao7-Nov-08 14:37 

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.