Browse by Tags

All Tags » vb6 (RSS)
Get the volume serial number of a drive
This code returns the volume serial for a hard drive (VB6). Code Public Declare Function GetVolumeSerialNumber Lib "kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As Long, ByVal nVolumeNameSize...

Posted by Alexis' Blog

Filed under: ,

Printer and the CommonDialog
In VB6, in order for you to make the Printer object in VB6 recognize the return of the CommonDialog.ShowPrinter method, you have to set something like: Printer.TrackDefault = True ' then show the printer dialog commonDialog1.ShowPrinter The only problem...

Posted by Alexis' Blog

Filed under: ,