Geeks With Blogs
Gabriel Lozano-Morán blog How to
How to: check if SP1 for Visual Studio .NET 2003 is installed
Someone asked on one of the Microsoft .NET newsgroups how he could check whether or not SP1 for Visual Studio .NET 2003 was installed. Service Pack 1 is published in the Microsoft Knowledge Base as article number 918700 so in order to check whether SP1 is installed you could check for the existance of the following registry key:HKEY_LOCAL_MACHINE\SOFT... Studio\7.1\S918007Even better would be to check if the value for the DWORD value "Installed" under this key, ......

Posted On Monday, December 4, 2006 8:37 PM

How to: retrieve the SQL Server remotely
In case you need to find out the version of the SQL Server installed on a server you could execute the following statement:SELECT @@VERSION;Which returns on my development sandbox the following string:Microsoft SQL Server 2005 - 9.00.2047.00 (Intel X86) Apr 14 2006 01:12:25 Copyright (c) 1988-2005 Microsoft Corporation Developer Edition on Windows NT 5.1 (Build 2600: Service Pack 2) Cross-posted from The .NET Aficionado ......

Posted On Monday, December 4, 2006 7:16 PM

How to: associate file types to WMP 11 on Windows Vista?
When I open certain media files they will no longer be opened in the Windows Media Player because the file associations were changed during the installation of Nero 7. In Windows XP when you start Windows Media Player and open the options screen there will be a tab where you can choose the file type associations. In Windows Vista however you will not find this tab. In Windows Vista file associations can be changed through a control panel applet. Click on the Windows Logo button (start) and click ......

Posted On Thursday, November 23, 2006 7:49 PM

How to: disable ClearType for 2007 Office System
There have been complaints about Internet Explorer 7 not respecting the system setting for font smoothing. I have noticed that the 2007 Office System ignores this setting as well. With other words when you start Word 2007 you will notice that ClearType is enabled regardless whether or not you have enabled ClearType in Windows.Using Process Monitor from Microsoft/Sysinternals I was able to determine which registry value could be set to make sure whether or not Office should look at the system setting ......

Posted On Tuesday, November 14, 2006 2:18 PM

How to: enable/disable MRU
For some reason I didn't see the list of Most Recently Used (MRU) items in applications like Visual Studio or Microsoft Word: Expecting that it would be a simple registry setting I started Process Monitor and set the filter to process name "devenv.exe" and started monitoring as I opened the "File" menu in Visual Studio then set the filter operation to "RegQueryValue": There it was, a registry key named "NoRecentDocsHistory" and the value set to 1. I changed this to 0 and now when I open the file ......

Posted On Monday, November 13, 2006 10:04 AM

DataGridView control does not show the column's friendly names
Today someone came with the following question:I have a DataSet with a DataTable and I have set the property Caption of the DataColumn "InvNbr" to "Invoice Number". However when I bind my DataSet to the DataGridViewControl it will show the Name property of the DataColumn instead of the Caption and according to the MSDN Library the Caption property should be used to display a friendly-name, no?He was right about the fact that the Caption property should be used by UI controls for ......

Posted On Monday, October 9, 2006 4:18 PM

How to: Add vertical guidelines to the Visual Studio IDE
I got this tip from the book Visual Studio Hacks by James Avery and was contributed by Sara Ford. Vertical guidelines can be very useful to better organise your code. You can have up to 13 different guidelines in the Visual Studio IDE by adding some minor modifications to the registry. Here are the steps you need to take to add vertical guidelines: Close all instances of the Visual Studio IDE (not really required) Open the registry editor (Start -> Run -> RegEdit) Navigate to the following ......

Posted On Thursday, October 5, 2006 4:05 PM

Copyright © Gabriel Lozano-Morán | Powered by: GeeksWithBlogs.net