Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

WebBrowser Probem in WPF !!! (Updated)

$
0
0

Hi everyone,

 

I want to show some website on webbrowser. I'm creating WB dinamically at run time

 

 

foreach (Border b in formBorders)
 {switch (boardTypes[counter])
 {case"Media":break;case"PlayList":break;case"Media.COMPONENT":
  WebBrowser wb = new WebBrowser();
  wb.VerticalAlignment = VerticalAlignment.Stretch;
  wb.HorizontalAlignment = HorizontalAlignment.Stretch;

  formBorders[counter].Child = wb;
  wb.Source = new Uri(boardSource[counter]);
  b.Child = wb;break;

 }

 mygrid.Children.Add(b);
 counter++;
 }

 

I used this code, anyway. I have two problems. I searched about it, but I havent found any information..

 

 

 

Question 1: How to hide scrollbar of WebBrowser in WPF dinamically

Question 2: How to disabled right-click menu of WebBrowser in WPF dinamically

Question 3: How to change source code dinamically (access dom3) For example I can add <bodyoncontextmenu="returnfalse;"

this code block

 

I think, I should use firefox or chromium browser but I couldnt find any sample about firefox in WPF and also I couldnt run chromium..

 

I'm looking forward your answers

 

Thank you




Viewing all articles
Browse latest Browse all 8156

Trending Articles



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