VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > 编程开发 > vb >
  • vb教程之获得IE的版本号

下面的程序可以获得IE的版本号: 
Private Type DllVersionInfo 
cbSize As Long 
dwMajorVersion As Long 
dwMinorVersion As Long 
dwBuildNumber As Long 
dwPlatformID As Long 
End Type 

Private Declare Function DllGetVersion _ 
Lib "Shlwapi.dll" _ 
(dwVersion As DllVersionInfo) As Long 

Private Function GetIEVersionString() As String 

Dim DVI As DllVersionInfo 

DVI.cbSize = Len(DVI) 
Call DllGetVersion(DVI) 

GetIEVersionString = "Internet Explorer " & _ 
DVI.dwMajorVersion & "." & _ 
DVI.dwMinorVersion & "." & _ 
DVI.dwBuildNumber 

End Function

相关教程