Blog Archives for category Visual Basic 6

Simulate Keystrokes using Win32 API (SendInput)?

Recently, I was modifying the old softphone source code (written in VB6) and encountered error using ‘SendKeys’ function. Sometimes, it… Continue reading »

How to multiple selected items from List Box (VB6)?

Ever wondered how to remove multiple selected items from list box in VB6? Trick here is loop through listbox in… Continue reading »

Delete Old log files using VB6

VB6 Snippet to delete old log files Private Sub deleteOldFiles() Dim sFileName As String Dim sFileSplit() As String Dim sFileSpec… Continue reading »

Write log using VB6

Function to write log file using Visual Basic 6 Private Sub writeLog(strMessage As String) Dim hFile As Long Dim sFolder… Continue reading »