Tag: HowTo

[HowTo] LINQ filter : Ignore accented letters (Diacritics) in string comparison ?

Here is a small extension method that will do the job (Warning : do not use for Linq To Sql): public static string RemoveDiacritics(this string text) { string formD = text.Normalize(NormalizationForm.FormD); StringBuilder sb = new StringBuilder(); foreach (char ch in formD) { UnicodeCategory uc = CharUnicodeInfo.GetUnicodeCategory(ch); if (uc != UnicodeCategory.NonSpacingMark) { sb.Append(ch); } } return […]

Visual Studio 2012 Color Theme

First thing first, here is the tool : http://visualstudiogallery.msdn.microsoft.com/366ad100-0003-4c9a-81a8-337d4e7ace05 Install via Extension Manager (Tools/Options) Install via Visual Studio Gallery.com (download and open directly or save then double-click) Install via “xcopy” into %appdata%\Local\Microsoft\VisualStudio\10.0\Extensions For Visual Studio 2012 Express, check this link : http://alinconstantin.blogspot.be/2012/09/using-color-themes-with-visual-studio.html How to change Icons : http://vsip.codeplex.com/

Could not load file or assembly ‘xxx.yyy’ or one of its dependencies…

Annoying message … if any… Could not load file or assembly ‘xxx.yyy’ or one of its dependencies. An attempt was made to load a program with an incorrect format. or in French : Impossible de charger le fichier ou l’assembly ‘xxx.yyy’ ou une de ses dépendances. Tentative de chargement d’un programme de format incorrect. Problem […]

[HowTo] Find the Component Container

[Browsable(true)] [Category(“Data”), Description(“The parent container, usually the form, that contains the controls on which the ErrorProvider can display error icons “), Localizable(true)] public ContainerControl ContainerControl { get { return _containerControl; } set { _containerControl = value; } } public override ISite Site { get { return base.Site; } set { base.Site = value; if (value […]