Autor Beitrag
felix96
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34


VS 2010 Express
BeitragVerfasst: Di 25.10.11 10:36 
Hallo.
Z.Z. probiere ich die Breite via JS zu bekommen etc. das funktioniert auch alles wunderbar, aber wenn ich anschließend ein DIV an diese stelle bewegen will, passiert nichts, da ich mit position: absolute arbeite. Dieses unterstützt der IE7 anscheinend noch nicht.

Nun meine Frage:
Ich habe den IE9 installiert. Wie kann ich das WebbrowserControl mit (mindestens) IE8 laufen lassen.

Im Internet stand, dass man einen Regstry-Schlüssel anlegen muss:
ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
        private void Form1_Load(object sender, EventArgs e)
        {
            
            Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION",
                System.Diagnostics.Process.GetCurrentProcess().MainModule.ModuleName, 8000, RegistryValueKind.DWord);
        }


Das funktioniert aber leider nicht :-(
Es wird zwar ein Registry-Schlüssel (Web.vshost.exe 8000) angelegt, aber javascript:alert(navigator.appName+' '+navigator.appVersion); ergibt IE 5.0 statt 8

Pls HELP!!!!!!!!!