Auto Completion Text in Windows Forms 2.0 : Une description générale
Doc MSDN autocompletesource
Un example très complet sur stackoverflow, avec stockage dans la base de registre
Un autre exemple sur csharp-online.net
in order to remove all even ints from a list.
Une classe de sélection de fichier très complète, historique, drap&drop : http://blogs.vbcity.com/hotdog/archive/2006/03/03/5861.aspx
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/019a6942-eceb-4a05-9116-336e7e5b5071
http://blog.monstuff.com/archives/000037.html
Quelques astuces c#
List
tab.RemoveAll(delegate(T item){ return i%2 == 0; });
All the « set » functions of List are quite nice, e.g.
List
.ConvertAll
.FindAll( MyFilterCondition )
.ForEach( PresentT );
where:
* T CreateTFromString(string s) – deserializes T
* bool MyFilterCondition(T item) – determines if item is needed
* void PresentT(T item) – does something about item (e.g. Console.WriteLine)
Commentaires