public Form1() { InitializeComponent(); ChatWindow.Navigate("about:blank"); HtmlDocument doc = ChatWindow.Document; //txtLog.Text += (doc.ToString()); doc.Write("<html><head><title>W</title><style>div {font-size:10px;}</style></head><body><div>Welcome to the chat room!</div></body></html>"); }