Tip Bank

DevX - Software Development Resource

Binary File Copying

Use this function for binary file copying. Call it to copy files of any type?executables, images, not just text files. The argument infilename represents the (full) path to the original

DevX - Software Development Resource

GetRandomColor – Generating a random color

‘ Return a random color’ Example: Me.BackColor = GetRandomColor()Function GetRandomColor() As Color Dim rand As New Random Return Color.FromArgb(rand.Next(0, 256), rand.Next(0, 256), rand.Next(0, _ 256))End Function

DevX - Software Development Resource

The SystemInformation Class

System.Windows.Forms.SystemInformation is a little known class that exposes a number of static properties that return information about many system settings, such as: Icon and cursor size (IconSize and CursorSize properties)