This is an old post, but the problem continues, and related messages only keep coming to SO
!
I am making a necropic problem here, and I am not considering a more recent issue just because it comes on top of my google search
The question is simple: "why won't the damn scrollbars on my ScrollableControl
?"
But there can be no concrete, definitive answer. Because the cause is the legions. Because regardless of whether scrollbars appear in the control:
- not only on your own property settings
- but also by the state of his parental control
- as well as the status of any child controls.
It is easy to fall into the trap of randomly scrolling values ββuntil the cow returns home. Or go to i / webs and hope to find some SO
foos. But oh dear. Here are some related SO
posts with an outstanding variety of suggested resolutions:
Horizontal scrollbar not visible in DataGridView
A horizontal scrollbar that does not appear in my text box
How to set scrollbar in windows form
How to make scrollbars appear on a resizable panel if the control is too big for it?
Scrollable form in C #, AutoScroll = true not working
How to get scrollbar in a panel in VB.Net?
There are VS-designer
property page screens (for example, here) and even some extreme code-based solutions ... my favorites:
Add vertical scrollbar to panel in .NET
How to add a Vscroll control to form in Visualbasic.net?
/ sighs /
General answer
.. as a minimal github solution to learn some of the .NET scroll voodo's:
https://github.com/violet313/TestWinForms/tree/Test1-Body-Panel
This is a Visual Studio 2015
solution using the .NET4.52 framework
.
In the solution, I try to create a form that responds to some dynamic text data that needs to be displayed. here is the basic layout that I am ultimately looking for:
-------------------------------------------------- | fixed-size form header | | ------------------------------------| side | | | panel | | dynamic content panel | stuff | | | | -------------------------------------------------- | fixed-size form trailer | --------------------------------------------------
I need a form:
Grab it, go through each of (only 9, starting at 95dccc5), and then test your requirements in a reasonable and incremental way. Remember to fork out when you make a dubious state change.
Irl: maybe I'm fat, but it took me more than an hour reading MSDN trying (and not being able to) figure out what unforeseen circumstances were when controlling .NET form. making a structured trial and error, so it took me only 20 minutes to get what I wanted.
y~bwc
I know it's yeaz ~ here , but who cares? but I should have gotten off with my chest. heh:
grrr. The need to cancel the answer and answer this question arises from my need to profitably take on Microsoft contract work. cashiers can be relatively (from the pov developer) non-technical and, after reading the lots including the words: fast, simple, direct, safe, etc., they leave with the impression that .NETish things are a walk to the park. My problem is that I will then have difficulty trying to reasonably explain why they might have to pay me for the n-day worth of getting a simple scrollbar that appears on a responsive form.
On this occasion, I never got there. lol. I spent several hours making my way to the MSDN blahs trying to achieve this. and then yawned, refused and advanced with a pragmatic implementation. which was accepted. but now it's w / end, and I'm a fool who can't let things be.