Scroll Panel on up/Down key
-
Helloooooo I have a bunch of LabelFields on a Panel. The Panel's parent is a Form. The Panel has the AutoScroll property set to true, and when the app. is run, the vertical scrollbar is displayed. However, I am not able to scroll the Panel using the up/down keys of the DPAD. Anyone know how I can make this work? Please suggest. Thanks
~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA
-
Helloooooo I have a bunch of LabelFields on a Panel. The Panel's parent is a Form. The Panel has the AutoScroll property set to true, and when the app. is run, the vertical scrollbar is displayed. However, I am not able to scroll the Panel using the up/down keys of the DPAD. Anyone know how I can make this work? Please suggest. Thanks
~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA
Override your Form's OnKeyDown to handle the the down and up keys, then adjust the Panel's AutoScrollPosition as desired.
Blog: http://windowsclientdevelopment.spaces.live.com FAQs: http://windowspresentationfoundation.wikispaces.com http://windowsmobile.wikispaces.com http://vsto.wikispaces.com