Run code on the 'main' thread from a background thread (assuming your context is a WinForm)...
BeginInvoke((MethodInvoker)delegate {
// put code here
});
Show Guid as a 32 byte hex encoded string
Guid.NewGuid().ToString("B");
Date formatting
// returns something like "2010/02/15 11:05:23 PM"
DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss tt");