blog.mha.dk
The on-line blog of Michael Holm Andersen

String formatting in C#

Friday, 31 March 2006 15:18 by mha

Steve Tibbett has written an excellent article about formatting strings in C# / .NET - lots of examples .. go check it out!

Categories:   C#
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Recursive Page.FindControl

Wednesday, 29 March 2006 15:01 by mha

As far as I know, Microsoft still hasn't added a recursive overload for Page.FindControl - So I guess we still have to make it ourselves:

private Control FindControlRecursive(Control root, string id)
{
    if (root.ID == id)
    {
        return root;
    }

    foreach (Control c in root.Controls)
    {
        Control t = FindControlRecursive(c, id);
        if (t != null)
        {
            return t;
        }
    }

    return null;
}

Regular Expressions in 30 minutes!

Wednesday, 29 March 2006 01:09 by mha

Did you ever wonder what Regular Expressions are all about and want to gain a basic understanding quickly? If so .. check out this tutorial and be sure to download the latest version of Expresso.

Categories:   C# | Tools
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

AMDs Cool'n'Quietâ„¢ Technology

Friday, 24 March 2006 23:58 by mha

coolandquiet.jpg

I've been reading about AMD's Cool'n'Quiet™ Technology - some websites stated it was "crap" and other said "cool" (in the very meaing of the word! :-) technology. So, I decided to give it a go, since I'm the lucky and *very* satisfied owner of an AMD 64 X2 3800+ DualCore CPU. I've been using it for some days now and I can only say: It works!! .. the CPU is as quick as ever and my PC is now even more quiet than it was before! So - Go ahead and read the Install Manual and be sure to install the AMDs "Power Monitor" utility which is great (above image!)

Categories:   Hardware
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Use the Express Editions and Win $10.000

Wednesday, 22 March 2006 13:05 by mha

madeinexpress.jpg

The Microsoft "Made in Express" Contest is a skill contest in which selected Finalists will build and display a "Project" consisting of a software application or physical device using Visual Studio Express and/or SQL Server Express products ("Express products"). The first prize is $10.000 - Interested ?!

Categories:   Tools
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Rainlendar @ your desktop!

Tuesday, 21 March 2006 13:58 by mha

During my teaching at Aalborg University, some of the students mentioned a nice little (freeware) utility called Rainlendar, which is a small calendar located on your desktop and shows events (with Outlook integration), ToDos - really handy, "speaks" danish and is able to synchronizes events between several clients (e.g. your notebook and home computer) - check it out.

Categories:   Tools
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Meet Microsoft in Aarhus

Monday, 6 March 2006 11:18 by mha

It's time for another "Meet Microsoft" meeting. Tomorrow (the 7th Marts), Martin and I will be going to Århus to hear about WinFX and N-Tier development using Enterprise Library v2.0 .. exciting stuff - Hope to see ya' all there!

Categories:   Misc.
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed