AutoScroll panel working intermittently.
Posted
by Edward Boyle
on Techlexic
See other posts from Techlexic
or by Edward Boyle
Published on Sun, 05 Dec 2010 08:54:12 +0000
Indexed on
2010/12/06
17:00 UTC
Read the original article
Hit count: 674
I spent hours last week trying to get AutoScroll to function properly on a derived/inherited panel control I have been writing. I found no answers on my own so I posted to several forums and move onto other code while I wait for a reply. Then out of nowhere, it started working properly. Now, Today (about a week later) I notice it is no longer working again! I go back to those old posts with hopes I will find an answer – No such luck.
I Google for about two hours reading everything I come across. I was just about to write a new custom control from the ground up, perhaps use a little unmanaged code to force things to function properly. All I knew was “options in front of me = dealys”. Just before I gave up, my head in my hands, Jordan Sirwin’s appropriately titled blog post: “C#: Windows Panel AutoScroll Bug / Intended Suckyness” saves the day!
In order for scroll bars to display, there must be at least one control in the Panel with AutoSize set to true. This is absurd… I’m not sure if this is a bug or intended, but it’s stupid.
–I feel your pain.
How many others have spent hours on this, or worse, just plain given up?
I want those hours back Damnit!
© Techlexic or respective owner