Click here to Skip to main content
15,887,214 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: LOOP THOUGH THE ROWS OF A TWO COLUMN WPF DATAGRID AND FORM A LIST COLLECTION WITH THE ELEMENTS Pin
Mycroft Holmes7-Apr-12 16:21
professionalMycroft Holmes7-Apr-12 16:21 
QuestionWPF Border Drop Shadow Trigger Pin
Kevin Marois6-Apr-12 12:27
professionalKevin Marois6-Apr-12 12:27 
QuestionResource dictionary Pin
michaelgr16-Apr-12 9:46
michaelgr16-Apr-12 9:46 
AnswerRe: Resource dictionary Pin
RobCroll6-Apr-12 12:47
RobCroll6-Apr-12 12:47 
GeneralRe: Resource dictionary Pin
michaelgr16-Apr-12 20:54
michaelgr16-Apr-12 20:54 
GeneralRe: Resource dictionary Pin
RobCroll7-Apr-12 1:53
RobCroll7-Apr-12 1:53 
QuestionWindow Background Image Pin
Kevin Marois6-Apr-12 6:07
professionalKevin Marois6-Apr-12 6:07 
QuestionScript warning in WPF WebBrowser Pin
Mahesha9995-Apr-12 10:08
Mahesha9995-Apr-12 10:08 
Hi there I want a great HTML editor in WPF. So for this what I did is that I added a WebBrowser to WPF window and navigated it to the html page with the TinyMCE html editor in it. However when I rin the app, the browser control shows the script warning as follows:

http://s13.postimage.org/rod6itsjb/brerr.png[^]

XAML

<Window x:Class="TinyMceWpf.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" >
<Grid>
<WebBrowser Name="webBrowser1" Margin="0,0,0,54" />
<Button Content="Get Html" Height="31" HorizontalAlignment="Left" Margin="22,0,0,17" Name="btnGetHtml" VerticalAlignment="Bottom" Width="108" Click="btnGetHtml_Click" />
</Grid>
</Window>

XAML.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace TinyMceWpf
{
///
/// Interaction logic for MainWindow.xaml
///

public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
webBrowser1.Navigate(new Uri(@"C:\Users\MAHESH\Desktop\TechNode\WPF\MytTechDos\TinyMceWpf\TinyMceWpf\TinyMceWpf\edit.html"));
}

private void btnGetHtml_Click(object sender, RoutedEventArgs e)
{
string editHtml = this.webBrowser1.InvokeScript("getContent").ToString();
MessageBox.Show(editHtml);
}
}
}

So here how can I suppress the script error message of the web-browser control?
I found many solutions online some that uses SupressScriptErrors property which I did not find in WOF WebBrowser control and the others that used Reflection. I tried many of them.

I tried Wolfie5's Relflection solution at http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/4f686de1-8884-4a8d-8ec5-ae4eff8ce6db/[^]. But did not worked for me.

Also I tried another Reflection solution that I explained in greated details here:
http://stackoverflow.com/questions/10030300/script-warning-in-wpf-webbrowser#comment12832540_10030300[^]

I did not get any help on these forums. SO Code Project is my last resort.
Please help. I am stuck here. Thank you.
QuestionASP Silverlight control unable to call a web service from the debugger Pin
Steve Holdorf5-Apr-12 6:36
Steve Holdorf5-Apr-12 6:36 
AnswerRe: ASP Silverlight control unable to call a web service from the debugger Pin
Abhinav S5-Apr-12 6:47
Abhinav S5-Apr-12 6:47 
QuestionWPF Merged Resource Dictionary Pin
Kevin Marois4-Apr-12 7:06
professionalKevin Marois4-Apr-12 7:06 
GeneralRe: WPF Merged Resource Dictionary Pin
Kevin Marois4-Apr-12 7:34
professionalKevin Marois4-Apr-12 7:34 
GeneralRe: WPF Merged Resource Dictionary Pin
Mycroft Holmes4-Apr-12 14:38
professionalMycroft Holmes4-Apr-12 14:38 
GeneralRe: WPF Merged Resource Dictionary Pin
Kevin Marois5-Apr-12 5:31
professionalKevin Marois5-Apr-12 5:31 
Questionwpf-mediaElement Pin
mane08064-Apr-12 5:44
mane08064-Apr-12 5:44 
AnswerRe: wpf-mediaElement Pin
Pete O'Hanlon4-Apr-12 5:48
mvePete O'Hanlon4-Apr-12 5:48 
QuestionCan we have any website for wpf UI development like http://www.microsoft.com/design/toolbox ? Pin
vish27030074-Apr-12 5:30
vish27030074-Apr-12 5:30 
AnswerRe: Can we have any website for wpf UI development like http://www.microsoft.com/design/toolbox ? Pin
Mycroft Holmes4-Apr-12 14:33
professionalMycroft Holmes4-Apr-12 14:33 
QuestionStill slightly struggling with Binding Pin
Sutton Mehaffey4-Apr-12 5:18
Sutton Mehaffey4-Apr-12 5:18 
AnswerRe: Still slightly struggling with Binding Pin
Pete O'Hanlon4-Apr-12 5:46
mvePete O'Hanlon4-Apr-12 5:46 
GeneralRe: Still slightly struggling with Binding Pin
Sutton Mehaffey4-Apr-12 7:33
Sutton Mehaffey4-Apr-12 7:33 
GeneralRe: Still slightly struggling with Binding Pin
Pete O'Hanlon4-Apr-12 22:53
mvePete O'Hanlon4-Apr-12 22:53 
GeneralRe: Still slightly struggling with Binding Pin
Sutton Mehaffey5-Apr-12 9:02
Sutton Mehaffey5-Apr-12 9:02 
GeneralRe: Still slightly struggling with Binding Pin
Pete O'Hanlon6-Apr-12 2:55
mvePete O'Hanlon6-Apr-12 2:55 
GeneralRe: Still slightly struggling with Binding Pin
Sutton Mehaffey6-Apr-12 4:45
Sutton Mehaffey6-Apr-12 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.