.NET

To have System.IO.FileSystemWatcher LastAccess work, the system must have access logging enabled with the following command. fsutil behavior set DisableLastAccess 0 After setting this, reboot, and you can successfully use the FileSystemWatcher to monitor LastAccess of files (sorta). Example Code FileSystemWatcher lWatcher = new FileSystemWatcher(@”C:\windows\temp”, “*.*”); lWatcher.NotifyFilter = NotifyFilters.LastAccess; lWatcher.EnableRaisingEvents = true; lWatcher.Changed += new…

Read More FileSystemWatcher – LastAccess Not Working

This snippet of code worked when tested in VB.NET application I’m working on. It will set the User Agent string for the duration of the control. Private Property uag As String = Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko _ Private Shared Function UrlMkSetSessionOption(ByVal dwOption As Integer, ByVal pBuffer As String, ByVal dwBufferLength…

Read More Change User-Agent in WebBrowser Control

Convert between bits/bytes/kilobits/kilobytes/megabits/megabytes/gigabits/gigabytes What is it? This is completely based on Matisse.net’s online bitcalc tool: http://www.matisse.net/bitcalc/ Enter in an amount of units and click calculate.  For example, in the screenshot, I entered in 1024 gigabytes.  The calculator converts 1024GB to bits, bytes, kilobits, kilobytes, megabits, megabytes, gigabits, gigabytes, terabits, terabytes, petabits and petabytes. I have written…

Read More Tool: bitcalc – A Bit Calculator in .NET

What is it? I created a small tool to help facilitate setting the default user to automatically logon to a system. Requirements Administrator Privileges .NET 2.0 or greater Details There are 4 registry entries of interest here: [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon] AutoAdminLogon=1 DefaultUserName= DefaultPassword= ForceAutoLogon=1 If you don’t want to download and run my program, you can…

Read More Tool: AutoLogon – Configure Windows' Automatic User Logon

I am working on a Motion-JPEG stream viewer for the Yawcam webcam streaming software.  This allows you to enter your stream’s URL and choose the size for the display and it will stream the Motion-JPEG (MJPG) using Aforge’s Video library since I’m not writing a parser for the MJPG stream in VB.net. Here’s a screenshot…

Read More Yawcam Viewer