| Detect Internet Explorer Version Private Sub Form_Load() label1.Caption = ieverstring label2.caption = IEVersion End Sub ' module code: '_______________________________________________________ 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 Public Function IEVersion() As Long Dim VersionInfo As DllVersionInfo VersionInfo.cbSize = Len(VersionInfo) Call DllGetVersion(VersionInfo) IEVersion = VersionInfo.dwMajorVersion End Function Public Function IEVersionString() Dim VersionInfo As DllVersionInfo VersionInfo.cbSize = Len(VersionInfo) Call DllGetVersion(VersionInfo) IEVersionString = "Internet Explorer " & _ VersionInfo.dwMajorVersion & "." & _ VersionInfo.dwMinorVersion & "." & _ VersionInfo.dwBuildNumber End Function |
Detect IE version |
Freelance ASP PHP web development | Web developer India Web development India| Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design