Click here to Skip to main content
15,906,569 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: How to display text on the Datagridview Header? Pin
Paul Conrad12-Nov-08 12:45
professionalPaul Conrad12-Nov-08 12:45 
QuestionHow to save the Windows current view and reload when next time the application is started? Pin
Soma Shekhar11-Nov-08 7:20
Soma Shekhar11-Nov-08 7:20 
AnswerRe: How to save the Windows current view and reload when next time the application is started? Pin
Richard Blythe11-Nov-08 16:18
Richard Blythe11-Nov-08 16:18 
GeneralRe: How to save the Windows current view and reload when next time the application is started? Pin
Soma Shekhar11-Nov-08 17:00
Soma Shekhar11-Nov-08 17:00 
GeneralRe: How to save the Windows current view and reload when next time the application is started? Pin
Richard Blythe11-Nov-08 17:18
Richard Blythe11-Nov-08 17:18 
QuestionHow to show a value in an Edit Textbox Pin
J_E_D_I10-Nov-08 8:35
J_E_D_I10-Nov-08 8:35 
AnswerRe: How to show a value in an Edit Textbox Pin
Dave Kreskowiak10-Nov-08 12:58
mveDave Kreskowiak10-Nov-08 12:58 
Questionlistbox Pin
sram1510-Nov-08 0:22
sram1510-Nov-08 0:22 
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 

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.