Archive for October, 2008

Using KeyPreview to handle form shortcut keys

If you need to trap shortcut keys in your application to perform misc tasks, use the following code to set KeyPreview to true and then in the KeyDown event handle the actual clicks:
 private void Form_OnLoad(object sender, EventArgs e)
{
KeyPreview = true;
}
private void form_KeyDown(object sender, KeyEventArgs e)
{
if (e.Alt && e.KeyCode.ToString() == “L”)
{
//DO Something            
}
}

WordPress 2.7: Coming Soon

Just Spotted this on Janes Blog, hope she doesnt mind me putting it here
As you may know, we’ve been working behind the scenes on the design and development of version 2.7 of the WordPress software that powers your blog. The administration interface you’re used to will be changing as a result of your More >

What really gets my goat about the latest ‘credit crisis’

Is the fact that it’s purely down to greedy banks and corporations trying to get rich and greedy with our money and then when it all goes tits up going back to their £5 million palaces and enjoying the money they have made whilst the likes of normal people like you and me have to More >

I need help choosing a new digital camera for Wifey

I’m currently using an Eos 30d with a variety of lens and kit to support my wedding, landscape and sports photography and as I drag my new wife around with me, i’ve usually got her on one arm and my camera on the other.
As a result she has finally given in and decided to join More >

SQL Datetime Woes – The ultimate guide to the datetime datatypes

I’ve not worked with SQL Server DateTime values for a while now so was a little rusty. I needed to do some date filtering and came across the following site by MVP Tibor Karaszi that I found really useful:
http://www.karaszi.com/SQLServer/info_datetime.asp