Preview C#, Visual Basic, and C++ Source Code files Direct in Attachments Without Opening

If you’re the developers or programmers, you can have the ability to able to fast preview the contents or the source code contained inside a source code file, without having to open up the file in resource hungry default viewer Visual Studio to view it, especially if you receive the source code file attachment in email. In Windows Vista and Microsoft Office Outlook 2007, the built-in preview feature or previewers is able to render and show the contents for most common file types, and it’s also possible to extend the preview capability to unsupported file types with custom preview handlers add-ins. However, if you just want to be able to preview C#, Visual Basic, and C++ code files (with .cs, .vb, .cpp, and .h extensions), here is a simple trick to enable the preview handlers for these source files without any installation.

By default, Windows Vista and Office 2007 comes with Microsoft Windows TXT Preview Handler, which is the preview handler that renders .txt text files. However, this Windows TXT Preview Handler can handle more file types than it’s actually registered to support by default, as nothing in this preview handler that restricts it to working with just a text file with .txt extension, and prevents it to working from text files with other extensions.

As you know, C#, Visual Basic, and C++ source code files in .cs, .vb, .cpp and .h extensions are also a text file, which is fully supported to render by Windows TXT Previewer Handler. However, Windows Vista and Outlook 2007 don’t register the association of these file types to be rendered for previewing by Windows TXT Preview Handler by default. To enable the support of preview for file with extension of .cs, .vb, .cpp and .h, simply copy and paste the below text into a text editor, and save it as a file name with .reg extension. Then double click on the .reg registration file to merge or insert the registry value into Windows registry.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.cs\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@=”{1531d583-8375-4d3f-b5fb-d23bbd169f22}”

[HKEY_CLASSES_ROOT\.vb\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@=”{1531d583-8375-4d3f-b5fb-d23bbd169f22}”

[HKEY_CLASSES_ROOT\.cpp\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@=”{1531d583-8375-4d3f-b5fb-d23bbd169f22}”

[HKEY_CLASSES_ROOT\.h\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@=”{1531d583-8375-4d3f-b5fb-d23bbd169f22}”

Once registered, you can now view or preview the source code directly from Outlook 2007 even if it’s send as the e-mail attachments, without the need to open to source code file in Visual Studio or other text editor.


Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

openholdem extension - receber anexos com vb - preview c# - rapidshare com files boxedapp source code - file previewer outlook configure text - mobile phone program source code in c# - Windows Registry File reader SourceCode - DirectC program source cde - enable preview of source code files in outlook - how to enable preview in C++ - SharpWebMail Source Code Rapidshare - C++ source codes - code editor c# source - mp3 player source c++ - simple code of media player on c# - text file preview - WebDAV .NET download attachments c# - how preview excel file in C# - crack para c# - How to open PDF file in default window + VC++ - openholdem source code rapidshare - download mail attachment from c# - mediaplayer c# code source - office 2007 previewers C# code - windows c++ code list file directly - kentico source code rapidshare - Outlook To Mobile Devices c# - rapidshare source code phone program - visual basic source code samples rapid - webdav download attachment C# - C# sourse code - how to include custom preview file on c# - preview render in C++ 2007 - receive attachment mail c# - atm c++ program source code - c# psd source code - visual basic open source code - aero theme .cpp - file encryption windows mobile sample code - HKEY_CLASSES_ROOT\mpeg file\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f} - mp3 player source pda c++ - AqiStar.TextBox source code rapidshare - code to preview an email before sending in c# - updating attachments in c# - visual basic player source - attachment download in c# - C# form .net "Preview handler" - VB Codes Rapidshare - VB outlook 2007 mobil text code - VB6 -