[SOLVED] Scrolling html content

Answered
0
0

Hi – I’m building a user interface that uses an html panel control.  I’m dynamically adding to the html in the control by appending to the end of the text.  In this scenario – the latest content needs to be visible when that happens.  So I need to have the htmlpanel scroll down to show the latest appended text (as the most recent needs to be on the bottom not the top in this scenario).

Is there a way I can get the html panel to scroll down to the bottom programatically without having the user do it?

 

Thanks in advance for your help…

 

Matthew

  • You must to post comments
Best Answer
0
0

Thank you Jens – you steered me in the right direction.  Here is the line of code that ended up working for me in case anyone else needs it:

 

htmlChat.Eval(“this.scrollByY(1000)”);

 

 

  • You must to post comments
0
0

Hi Matthew,

one way could be this:

this.htmlPanel1.Html += "<br> new line" + DateTime.Now.Second.ToString();
EvalAsync("App.Window1.htmlPanel1.scrollToY(1000)");

Best,
Jens

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.