Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

how to enable xaml browser application through problematically vb.net for Internet Explorer

$
0
0

Dear Exports,

Below code is not working after deployment. we are using VS 2012 WPF browse application with VB scripts

Dim i As Integer = -1
        Dim s1 As String = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3"
        Try
            Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey(s1)
            If key IsNot Nothing Then
                i = CInt(key.GetValue("2400"))
            End If
        Catch
        End Try
        If i > 0 Then
            Try
                Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey(s1, True)
                If key IsNot Nothing Then
                    key.SetValue("2400", 0)
                End If
            Catch
            End Try
        End If


Thanks & Regards Manoj Patel



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>