Custom Control
-
I have a problem: Try make a new custom control(usercontrol1). In this control, you add a listbox which goes beyond the bounderies of you usercontrol1 and insert as many strings so these as well goes beyond the bounderies. That is it, compile it. Now try add usercontrol1 and a button control to a webform. Since the listbox goes beyond the the bounderies, you add the property (autoScroll = true ) to usercontrol. Compile and run the program. You now use the scrollbar to go to the last element in the listbox and select this. You now push the button, and then you select the second last item in the listbox. Now you will see that the usercontrol scrolls to the top.... WHY? I think it it because the control is being ScrollControlIntoView, but how to prevent that? Thanks in advance... Gooky