Option Explicit
Many developers code text boxes to only accept numeric values. They usually forget about keyboard and mouse copy and paste functions. The following code only allows values 1 to 9
Many developers code text boxes to only accept numeric values. They usually forget about keyboard and mouse copy and paste functions. The following code only allows values 1 to 9
The AWT Component.paint and Component.update methods take a Graphics object as a parameter. This object should not be retained, because it might be a transient object valid only during the
The following code creates an array with month names or populates a combobox or listbox with same = without all the typing: holdMonth(1) =
Private Function SystemParametersInfo Lib “user32” Alias _ “SystemParametersInfoA” (ByVal uAction As Long, ByVal uParam As Long, _ ByVal lpvParam As Any, ByVal fuWinIni As Long) As LongConst SPI_SETDESKWALLPAPER = 20′
‘ Create a nested directory” This is similar to the MkDir command, but it creates any’ intermediate directory if necessarySub MakeDirPath(dirname As String) Dim i As Long, path As String
Private Declare Function FormatMessage Lib “kernel32” Alias “FormatMessageA” _ (ByVal dwFlags As Long, lpSource As Any, ByVal dwMessageId As Long, _ ByVal dwLanguageId As Long, ByVal lpBuffer As String, ByVal
Private Declare Function SearchPath Lib “kernel32” Alias “SearchPathA” (ByVal _ lpPath As String, ByVal lpFileName As String, ByVal lpExtension As String, _ ByVal nBufferLength As Long, ByVal lpBuffer As String,
Private Declare Function GetModuleFileName Lib “kernel32” Alias _ “GetModuleFileNameA” (ByVal hModule As Long, ByVal lpFileName As String, _ ByVal nSize As Long) As LongPrivate Declare Function GetModuleHandle Lib “kernel32” Alias
The System.exit method forces termination of all threads in the Java virtual machine. This can be drastic. It might, for example, destroy all windows created by the interpreter without giving