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

hide scrollBar visibility

$
0
0

I have a webbrowser and I am loading a .html file. The problem is that although I have already set the ScrollViewer.VerticalScrollBarVisibility to"Hidden", the scrollbar is still visible.

I have also tried this approach and it is not working

<WebBrowser x:Name="personalizedWebBrowser"HorizontalAlignment="Left"VerticalAlignment="Top"ScrollViewer.CanContentScroll="False"ScrollViewer.HorizontalScrollBarVisibility="Hidden"ScrollViewer.VerticalScrollBarVisibility="Hidden"LoadCompleted="wb_LoadCompleted"/>privatevoid wb_LoadCompleted(object sender,System.Windows.Navigation.NavigationEventArgs e){ mshtml.IHTMLDocument2 myHtmlDoc =(mshtml.IHTMLDocument2)personalizedWebBrowser.Document;myHtmlDoc.body.style.overflow ="hidden";}

Could you please suggest anything else? Could it be because from Chrome (perhaps the overflow request)? 


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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