Category Archives: windows

powercfg – Enable Hibernate on Vista

Today, Daniel helped my to solve a long standing miracle. For some unknown reason, Vista decided not to support hibernate on my Toshiba m400 anymore. So what to do:

Start the command prompt and type

powercfg -H ON

You won’t see anything on the screen, but when going back to your advanced power potions you will see both, hibernate and hybrid sleep again.

Vista Power Options

That’s all – and you can send your machine to hibernate again.

Send to Hibernate

Microsoft Office Mobile 6.1: Upgrade

This update finally supports the new file formats of Office 2007 on your mobile device:

To allow Windows Mobile users to work with Office documents created in the Open XML formats, Microsoft has developed an upgrade for Word Mobile, Excel Mobile, and PowerPoint Mobile applications. This upgrade to the Office Mobile applications allows viewing and editing of Word documents and Excel workbooks and viewing of PowerPoint slideshows created by using Microsoft Office 2007.

Other improvements include:
• Enhanced viewing experience for charts in Excel Mobile.
• Ability to view SmartArt in PowerPoint Mobile.
• Ability to view and extract files from compressed (.zip) folders.

The update need approximately 7 Mb on your device. Therefore, I would recommend using a memory card for the installation.

How to listen iPod while charging on Vista

While charging an iPod on a Windows Vista system without having iTunes installed, you might face the issue that the iPod is not willing to play any music as long as it is charging. Therefore, simply choose Safely Remove Hardware from the Vista task tray.

Safely Remove Hardware

There you select Generic volume and click Stop. In the second dialog do the same, select Generic volume and click Stop.

Stop a Hardware device

After a few seconds your iPod will re-start and awaiting your commands while it is still charging.

WPF and the Vista User Experience

I am working on a user interface (UI) for a client tool of our current project. Though, the last two have been a epic battle fighting with a various of minor things. However, each and every of these things does cost a remarkable amount of time.

Starting with WPF many developers will spend mcuh time with skinning in WPF. It’s a cool thing, but you should leave these things to designers. It is a enormous time sink. You make huge progress in the beginning but end up with endless fine-tuning in the end. The first have a look at the Windows Vista User Experience Guidelines. The really thing: you don’t have to read everything online, just download the 630 pages as PDF document. You will see that skinning should be used carefully. Much more important are some new guidelines to keep in sync with the Vista UI. BTW: if you are looking for the Vista icons you should have a look here (but I haven’t told you that and so use them only to inspire you by creating own icons).

Well, what’s about the cool stuff such as the new Command Link in Vista? Should be a new control? Well, not that easy. Daniel Moth found out to check the Vista Bridge Samples coming with the Windows SDK. you should go definitely for the Windows SDK Update for Vista. Daniel also gives a first impression how to use the TaskDialogs provided by the VistaBridgeLibrary.

Now you will definitely run into trouble if you don’t create a manifest file for you application using the following dependency:

<dependency> 
 <dependentAssembly> 
 <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="x86" publicKeyToken="6595b64144ccf1df" language="*" /> 
 </dependentAssembly> 
</dependency>

In my case, I also had to use strong-named assemblies since they are used within VSIP packages. You will realize that the VistaBridgeLibrary uses friendly assemblies, Junfeng gives a short introduction into friendly assemblies. You’ll discover that is not as easy since there have been some changes in Visual Studio 2005. Adrian figured out how it works. David cover’s the further steps and also provides a small tool to obtain the public key token of a signed assembly ready to be copy ‘n’ pasted into your Assembly.cs file.

Windows SDK Update for Windows Vista

Here we go, the Windows SDK Update for Vista:

“The Microsoft® Windows® Software Development Kit (SDK) Update for Windows Vista provides documentation, samples, header files, libraries, and tools designed to help you develop Windows applications using both native (Win32) and managed (.NET Framework) technologies. This release of the SDK supplies”

Toshiba Driver Availability

For quite a time, I am waiting for the drivers for my Toshiba m400 running Microsoft Windows Vista Enterprise Edition. Drivers availability is scheduled for end of January as the Toshiba support page says.

“Toshiba is committed to making final production BIOS and various software components for Windows Vista available for our Vista Capable systems within the timeframe of the public launch of Windows Vista, scheduled for January 30, 2007.”