0

I want to display a webpage in a WebBroswer in my winforms application. I however want to use some custom css to change how the page looks. Is it possible to attach a style sheet and edit the html page you are viewing?

2
  • maybe you can open webpage with javascript:void(document.designMode="on") so this will force page to be edited. Commented Feb 27, 2011 at 21:34
  • 1
    possible duplicate of winforms html editor Commented Feb 27, 2011 at 21:39

2 Answers 2

1

You can use this web control http://www.codeproject.com/KB/miscctrl/csEXWB.aspx and save it as a web page and load and you can show the source in another text box , once changes are made you can save to a temp file and load it. There is an option to view local file.

Sign up to request clarification or add additional context in comments.

Comments

0

I don't think that kind of thing is supported.. but anyway that would be a horrible thing to do. you may end-up interfering with the CSS used by the client page.

Have you ever seen your browser override your CSS used by page and say i want to show it this way. (I know development tools like firebug,etc do it)

1 Comment

The website page has very little styling.I want to add a css file to the browser so that the fonts, colors etc are consistent with the style of out application.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.