@
@
@ssoftic2014-04-29 12:44:41
C++ / C#
@ssoftic, 2014-04-29 12:44:41

How to make a smooth update of a panel container in C# ?

When updating the text in the panel, the page scroll moves back, how can I leave it in place?
PS I use the htmlrenderer library to display text.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
ssoftic, 2014-05-01
_

If anyone needs a solution

int panelVScroll = panel.VerticalScroll.Value; // получает текущее значение
panel.text = "Test";
panel.VerticalScroll.Value = panelVScroll; //возвращаем на место скроллбар

After updating the text, the scrollbar will return to its place and not to the beginning.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question