Pierre Greborio.NET

Talking about .NET world

March 2004 - Posts

Visual Studio .NET 2005 Technical Preview

Yesterday I downloaded Visual Studio .NET 2005 TP on my Windows 2003 Server. I was completely excited to develop an Indigo application without waiting for Longhorn alpha slowness. After a long setup, I discovered that Indigo isn't present in this version :-(

I'm so sorry to read that the Indigo developer team is developping on Windows XP and I (we) have to wait for so long time ....

Posted: Mar 29 2004, 06:18 PM by PierreG | with 2 comment(s)
Filed under:
gYearMonth and ASP.NET web services

Probably I'm making something wrong, but I don't undesrtand why the XSD type gYearMonth (it's not the only one) is mapper on System.String CLR type. If I have a simple web method as following:

[WebMethod()]
public string GetYearMonth([XmlElement(DataType="gYearMonth")] string d)
{
 return d;
}

I can send 2003-12 as well as abc ! Sounds strange.

Posted: Mar 11 2004, 12:06 PM by PierreG | with no comments
Filed under:
Is ColorTranslator.ToHtml correct ?

I was playing with colors with transparency when I had to use System.Drawing.ColorTranslator.ToHtml to translate the ARGB color into HTML string color representation. I discovered that the above method doesn't consider the alpha channel. Then, I created my own:

private string ToHtmlAlpha(System.Drawing.Color c)
{
 return String.Concat("#",
    c.A.ToString("X2", null),
    c.R.ToString("X2", null),
    c.G.ToString("X2", null),
    c.B.ToString("X2", null));
}

Posted: Mar 10 2004, 12:30 PM by PierreG | with 2 comment(s)
Filed under:
More Posts