Hi Please do the following steps, I think it'll help you Create a new windows application Drop a WebBrowser Control to Form1 (leave the webBrowser1 as name) change property Dock to none change the property Url to about:blank drop a button to form1 (leave the button1 as name) bouble click on the button1 and paste following code as event handler
private void button1_Click(object sender, EventArgs e)
{
System.IO.MemoryStream st = new System.IO.MemoryStream ();
string sampleHtml = "Hello world! ";
UTF8Encoding uniEncoding = new UTF8Encoding();
// Create the data to write to the stream.
byte[] firstString = uniEncoding.GetBytes(
sampleHtml);
webBrowser1.DocumentStream = st;
st.Write(firstString, 0, firstString.Length);
st.Flush();
st.Position = 0;
webBrowser1.DocumentStream = st;
}
Ahmadreza Atighechi ..:--::..