Click here to Skip to main content
15,908,264 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
How do i make it so i can load the wbsite in a browser and the html code of that website will appear in a richtextbox and i can edit that html and the webpage will change as i change the text in the richtextbox?
Posted
Comments
Sergey Alexandrovich Kryukov 11-May-11 23:06pm    
Tag it! Forms, WPF, what?
--SA
Legor 12-May-11 3:03am    
Totally unclear what you want to know. Improve your question.
Smithers-Jones 12-May-11 6:05am    
Not a specific question.

1 solution

It is not quite as simple as that: with basic text it is possible, if you use a WebBrowser control and set the DocumentText property to the string - there are problems though if you use any relative paths (including those starting "~").
The only other way is to save the file each time the RTB changes, and tell the browser to refresh: the easiest way is to send the F5 key to the browser - there is an article here which may help: Sending Keystrokes to another Application in C#[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900