Finding the Short Path (8.3) for a long file name (VB.NET)

This sample illustrates how to call the Win32 API call GetShortPathName to obtain a short file name...

ShortPath.zip

Check out pinvoke.net for the VB.NET and C# declarations and a simple C# sample.

 

Launching Processes from C#

This sample illustrates how to launch processes in various ways from C#.... as discussed in this post.

LaunchingProcesses.zip

Check out How can I run another application or batch file from my Visual Basic .NET code for the VB.NET version...

 

Disabling AutoRun

QueryCancelAutoPlay.zip

This sample (above) was created as a response to this thread on GotDotNet and uses the QueryCancelAutoPlay windows message in a VB.NET application to suppress the autorun when a removable drive/cd/etc... is inserted... more details on this concept are available here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_reg.asp

 

Print Sample

PrintSample.zip

Simple print sample, loads a text file and shows you how to use the preview window and print the file out... no paging or anything else fancy...

 

Pulling MSDN Content into your own chrome

Pull.zip

See this blog entry for more information

Copying from one .Text server to another

This is the tool I used to move my blog from blogs.msdn.com to blogs.duncanmackenzie.net, but within days of my move, Scott shut down the web service on which this tool depends (at least on blogs.msdn.com). Still, you might find the code useful, so here it is.

BlogCopier.zip

See this blog entry for more information

Divider Label

This is a little windows forms control that displays a label with a 'divider' line next to it...

DividerLabel.zip

See this blog entry for more information

Term Extraction

This is a C# class library and a sample windows forms app showing one way to call the Yahoo! Term Extraction service from .NET

TermExtraction.zip

See this blog entry for more information