Change User-Agent in WebBrowser Control

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 As Integer, ByVal dwReserved As Integer) As Integer
    End Function
    Const URLMON_OPTION_USERAGENT As Integer = &H10000001
    Public Function ChangeUserAgent(ByVal Agent As String)
        UrlMkSetSessionOption(URLMON_OPTION_USERAGENT, Agent, Agent.Length, 0)
    End Function

Stopwatch for Windows

I forgot I wrote this for a specific reason some time ago and came across it this morning decluttering some folders on my NAS. I can’t find the source, but when I do I’ll put a link to it here for Github.

It is a stupidly simple stopwatch written in VB.NET. I have a 32bit and 64bit version for download. No idea why I did this — I’d have to look at the code again heh.
2014-06-05_102646
Download it now!
stopwatch

Tool: bitcalc – A Bit Calculator in .NET

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 this in .NET 2.0 and is a standalone application for you to consume and use. I use this ALL the time.

Screenshot

2013-02-15_134805

Download

Download here:  bitcalc

Changelog

2/15/2013: Added copy to clipboard. You can copy to clipboard by double-clicking a cell, selecting multiple cells and right-clicking and choosing “Copy”.

Tool: AutoLogon – Configure Windows' Automatic User Logon

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 simply copy the above text into notepad, save-as a .reg file and double-click it to run it. Make sure you take care to modify the settings as necessary.
The convenience of my application is that it will list local users so you can simply just click on the desired user and set the information accordingly.

Screenshots

2013-01-30_092244

Download

Download from here:  AutoLogon (62KB)

Changelog

  • 1/30/2012 – Added Show/Hide for password box and set default to hide password.
  • 1/29/2012 – Initial Release for Testing

Yawcam Viewer

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 of the current version I’m working on.  Everything is working and I’m now starting to test the authentication portion.
 
Here’s a video walkthrough of the progress I’ve been making.


Hopefully this will be built upon and offer a nice alternative to the browser based viewing of the live stream for Yawcam software.

This is being developed in Visual Basic 2010 Express and is currently tested to run on XP SP3, Windows 7 (32 and 64bit) and Windows Vista (32 and 64bit).  It will require .NET framework 4 but I have built the first prototype with .NET 2 and it worked fine.