Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '########################################################
- ' Credits 3DotDev from http://3dotdevcoder.blogspot.fr/
- '########################################################
- Public Function Framework4isInstalled() As Boolean
- Try
- AppDomain.CurrentDomain.Load("System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
- Return True
- Catch
- Return False
- End Try
- Return False
- End Function
- '#########################################################
- ' Une autre possibilité
- '#########################################################
- Public Function Framework4isInstalled()
- If Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion.StartsWith("v4") Then
- Return True
- End If
- Return False
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement