May 2006 - Posts

Visit Microsoft Technet Community

If you haven't visited the new Microsoft Official Technet Community yet, please do so. You can find the community at this site: http://forums.microsoft.com/technet

If you already has an account in MSDN Community, then you don't need to register, because you can use the same account to all Microsoft communities.

Other Microsoft communities you might find interresting are:

ASP.NET Communityhttp://forums.asp.net/ (soon to be integrated to MSDN community)
Windows Academic Community: http://forums.microsoft.com/windowsacademic
Windows Live OneCare Community: http://forums.microsoft.com/windowsonecare
Microsoft Codename Max: http://forums.microsoft.com/Max


See you there!
Posted by cvega with no comments
Filed under:

"Send To" Notepad

If you’re a programmer using Windows, then most of the time you probably have had opened a source-code or other files with uncommon file-extension, to notepad. Shift+Right-Click a file in Windows Explorer and clicking the "Open With…" shortcut is probably the most popular method of doing this.

But there is another method that will allow you to open any file with notepad, and this method is my favorite Windows tweak. This is the "Send To" tweak.

Win9x
1. Open C:\Windows\SendTo Folder.
2. Create a New Shortcut to C:\Windows\Notepad.exe

WinXP/Win2K/Win2003
1. Open C:\Documents and Settings\All Users\SendTo Folder.
2. Create a New Shortcut to Notepad.exe

This method will add a new menu to “Send To”, just right-click any file that you want to open to notepad, and choose "Sent To" -> "Notepad".

Note: Although I describe the method to add a shortcut to Notepad in your Send-To, you can actually apply the same tweak to about any shortcuts, like Shortcut to Write.Exe (Wordpad), shortcut to your Icon Editor, shortcut to your Bitmap editor and so on.

Cheers and Happy Coding!

Posted by cvega with 2 comment(s)
Filed under:

Remote Scripting (XMLHttpRequest) sample

While I was testing web-browsers for remote scripting support (for my current project), I made a sample page that will load page by user choice, and the loaded page will be used to update the current page. Remote scripting has been around for many years already, and now it resurfaced with new name AJAX (Asynchronous JavaScript and XML), so we'll go with this new name as well -- the result of my test is that most (if not all) web-browsers I tested has support for XmlHttpRequest object -- not all, because I'm currently having trouble in making it work on Opera browser.

The sample page I wrote is as I said very simple, no server-side data processing, just a set of HTML pages with client-side JavaScript and ActiveX for Internet Explorer browser.

I uploaded the sample here: http://www.freewebs.com/cvega/xmlhttp

You can view the source of the sample page for the code, but currently, since it was originally created as a test page, I intentionally removed all comments and explanation. I'll try to blog more about this later.

Happy coding,

-chris

Posted by cvega with no comments
Filed under: