pisceswzh
Well-known member
- Joined
- Mar 19, 2007
- Messages
- 96
- Programming Experience
- 1-3
Hi,
I am working on a program that has a datagrid and a webbrowser in a form. When the user clicks on one row in the grid, the webbrowser will display something that is related to the selected row.
My problem is the datagrid is supposed to auto reload every 1 min and if the reload happens when the user is reading something in the middle of a webbrowser (I mean the scroll bar has been scrolled to the middle), after the reload the webbrowser is just reset (the content is not changed, but the scroll bar is back to the top).
So what I want to do is NOT to reload if the scroll bar is not at its default position (the top of the webbrowser). Now the problem is how can I determine if a scroll bar of a webbrowser is at its default position?
Or is there any better solution in my situation?
Thanks!
I am working on a program that has a datagrid and a webbrowser in a form. When the user clicks on one row in the grid, the webbrowser will display something that is related to the selected row.
My problem is the datagrid is supposed to auto reload every 1 min and if the reload happens when the user is reading something in the middle of a webbrowser (I mean the scroll bar has been scrolled to the middle), after the reload the webbrowser is just reset (the content is not changed, but the scroll bar is back to the top).
So what I want to do is NOT to reload if the scroll bar is not at its default position (the top of the webbrowser). Now the problem is how can I determine if a scroll bar of a webbrowser is at its default position?
Or is there any better solution in my situation?
Thanks!