Thursday, July 15, 2010

Saving objects using Entity framework

TableClass tableObject = new TableClass();
tableObject.property1 = "Hello";
tableObject.proeprty2 = "World";

// NOTE: make sure to use the same instance of entityContextObject which was used to populate the tableObject (e.g. updating back to database)
entityContextObject.AddToTableClass(tableObject);
entityContextObject.SaveChanges();

Minimize Outlook 2007/2010 to tray

Very easy fix but it should be a default I think. Anyways in 2 easy steps:

1. Click on outlook icon in Notification area (Beside the clock in task bar)
2. Choose Hide when minimized

How to minimize MSN Messenger to the system tray in Windows 7

Not sure why Microsoft has changed the behavior in Windows 7 but its annoying that it takes up two programs in task bar when its running. Follow the link below to see the solution.

Link: http://windows7center.com/tutorials/how-to-minimize-msn-messenger-to-the-system-tray-in-windows-7/