I've encountered the following bug with .NET (WinForms) and was wondering if anyone has seen the same thing.
Basically WinForms isn't scrolling controls that have their visibility set to false. Here is an example:
1) Create an autoscroll panel with a control whose initial visiblity is false
2) Scroll the panel a little bit
3) Do something to change the control's visibility to true
Now the control whose visibility just changed is in the WRONG place - it doesn't look like the control is receiving the scroll notifications.
Has anyone seen this? If so, are there any workarounds?
I've attached a demo app (C# 2003) to demonstrate the problem.
I have had the same problem happen to me! I made a .NET app in C# - it's one big scrollable control - well i went to make it an ActiveX and it woked great - except when you scroll around in the parent IE Window - the scroll bars can no longer receive focus. To be exact: if you scroll down in IE you can't access the horizontal scroll bar of the control, and if you scroll right in IE you can't access the vertical one. I thought about wrapping my control inside another one that is not scrollable and trying that. It would look the exact same to an end user, but the scrollable control's (immediate) parent control wouldn't be scrolling at all - I haven't tried it yet though. If/when I do I will let you know. Have you found any workarounds already?