Take the 2-minute tour ×

I have a tab control in the middle and a statusstrip. A label on the statusstrip represents time. Now on every timer's tick the tabcontrol's page which are larger in size and are scrolled to bottom automatically scrolls to the top.

Now how do i keep the scroll position same on timer's tick?

share|improve this question
What are you doing in the timer's tick event handler? Please post code. –  Jason Watkins Mar 25 '13 at 6:25
private void timer1_Tick(object sender, EventArgs e) { time.Text = DateTime.Now.ToString(); } // where time is a label on status strip –  user2106652 Mar 25 '13 at 6:28
If that's the entire event handler, then it's unlikely that the event is causing the issue. Please post a complete test case that demonstrates the issue in your question. –  Jason Watkins Mar 25 '13 at 6:29
Its a Main Form where my controls are loaded on tabcontrols. So those controls which are larger in size than the tab controls have scroll bars automatically. Now whenever i scroll down in the tab control it automatically scrolls to the top. I think either i should use a separate thread for this or load the timer from a seperate thread so that the tab control does not scroll itself to the top –  user2106652 Mar 25 '13 at 6:32
add comment


Your Answer



Browse other questions tagged or ask your own question.