Skip to content
July 19, 2010 / kiranpatils

WebBrowserControl Scroll to Bottom


I am working on a simple chat application using a System.Windows.Forms.WebBrowser Control to display the messages between the user and the recipient. How do I get the control to automatically scroll to the bottom every time I update the DocumentText of the control?


I tried to Google it and found below stuff which doesn’t work as expected.



webCtrl.Document.Window.ScrollTo(0, int.MaxValue);

Finally, I did it using following way:

private void ScrollMessageIntoView()
 // MOST IMP : processes all windows messages queue

 if (webBrowserControlRcdMsg.Document != null)



Thanks to this Link :


One Comment

Leave a Comment
  1. Huguet / Nov 29 2013 3:26 pm

    It works fine. Merci !

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: