N
Nathan
Hi,
I have a panel on a form that contains a number of controls (all created at
design time), so many that the panel has a vertical scrollbar in order to
view all of them (panel1.AutoScroll = True). When the form first loads, the
panel's scrollbar automatically scrolls to about the middle rather than
staying at the top. After moving the scrollbar to the top, I click on one
of the controls, and a dialog box appears to allow me to edit it's
information. When I click OK on the dialog box, the information on the
control is changed, and the panel's scrollbar once again scrolls to the
middle. If I scroll to the top, then click a button that refills the
controls with different information, this problem disappears. Does anyone
have any idea what's going on, or what event is firing to cause the panel to
scroll automatically sometimes?
Thanks,
Nathan
I have a panel on a form that contains a number of controls (all created at
design time), so many that the panel has a vertical scrollbar in order to
view all of them (panel1.AutoScroll = True). When the form first loads, the
panel's scrollbar automatically scrolls to about the middle rather than
staying at the top. After moving the scrollbar to the top, I click on one
of the controls, and a dialog box appears to allow me to edit it's
information. When I click OK on the dialog box, the information on the
control is changed, and the panel's scrollbar once again scrolls to the
middle. If I scroll to the top, then click a button that refills the
controls with different information, this problem disappears. Does anyone
have any idea what's going on, or what event is firing to cause the panel to
scroll automatically sometimes?
Thanks,
Nathan