Before I get into the entire situation, let me ask first if anyone has seen a scrollbar behaving this way: when I re-calculate values for .max, sometimes my scrollbar completely disappears without any chance of reappearing again. When I resize the form (and with that the scrollbar) the scrollbar's .max value is recalculated. On some occasions this results in a disappearing scrollbar. Resizing (in any possible way) does not bring it back.
I have tried everything to make it appear again but without any luck. It's properties are 'normal': .visible = True, .Left is on the screen, .Width > 0, .Height > 0, .Enabled = True and so forth. I even put a timer on my form to make it's .visible property set to true. But it disappears nonetheless and I can't bring it back without shutting the application down and restarting.
Has anyone seen this behaviour? It's starting to nag at me in the middle of the night...
This is how I use the scrollbar:
Inside a picturebox I have numerous textboxes and a flat scrollbar to scroll up/down the textboxes. I do not scroll the inside of the picturebox, but rather I calculate which textboxes should be visible using the scrollbar's .value value, and then put those textboxes in their proper position inside the picturebox. I do this at the Resize and Scroll events. I'll post the code in another message when you ask for it.
Thanks in advance!
when there's too much something is missing
I have tried everything to make it appear again but without any luck. It's properties are 'normal': .visible = True, .Left is on the screen, .Width > 0, .Height > 0, .Enabled = True and so forth. I even put a timer on my form to make it's .visible property set to true. But it disappears nonetheless and I can't bring it back without shutting the application down and restarting.
Has anyone seen this behaviour? It's starting to nag at me in the middle of the night...
This is how I use the scrollbar:
Inside a picturebox I have numerous textboxes and a flat scrollbar to scroll up/down the textboxes. I do not scroll the inside of the picturebox, but rather I calculate which textboxes should be visible using the scrollbar's .value value, and then put those textboxes in their proper position inside the picturebox. I do this at the Resize and Scroll events. I'll post the code in another message when you ask for it.
Thanks in advance!
when there's too much something is missing