How Do I Retrieve the Location of the Temp Folder for the Current User?

Posted by: Imar Spaanjaars at Sunday, April 11, 2004 1:24:33 PM in: VB.NET
When you're working with files, it is sometimes necessary to write to temporary files. Of course you could drop those files in the application's folder, but it's good practice to save those files in the user's Temp folder instead. This snippet will return the full path to the user's temp folder, e.g. C:\Documents and Settings\Imar\Local Settings\Temp\, so you know where to save your temporary files.
For this code to work, you'll need to import the System.IO namespace.
Read on ...

Measuring the Size of an Image with VB.NET

Posted by: Imar Spaanjaars at Tuesday, December 30, 2003 7:27:25 PM in: VB.NET
It can be useful to be able to retrieve the Height and Width of an image file you have on disk. The following snippet shows you how to do that:
Read on ... 1