May 31, 2003

Get the Drive Serial Number

You can get the serial number of your hard drive, floppy disk, or CD-ROM easily without any additional ActiveX component. First, start a VB project, add a standard module, and place a Command Button control on the form: ‘– Module codePrivate Declare Function GetVolumeInformation _ Lib “kernel32” Alias “GetVolumeInformationA” _

Book Excerpt: Database Access with Visual Basic.NET, 3rd Edition

hether you are using WinForms, WebForms, or Web services, Database Access with Visual Basic.NET, Third Edition, is your practical guide to developing database applications with Visual Basic.NET and ADO.NET. The book begins by reviewing the fundamentals of database development, Structured Query Language (SQL), and Microsoft SQL Server 2000. It then