I tried adding the code from this previous thread, but it did not work for me.
How do I disable the horizontal scrollbar in a Panel
I simply just want to remove it, because it shows up regardless of if it needs to be or not be on my screen.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A panel will not show bars unless it is either statically set to do so via
Panel.AutoScroll = falseandpanel1.HorizontalScroll.Visible = true. I would reccomend you verify that no controls extend beyond the panel, rather than forcing the status.Insert the following into some part of your form. This will verify that you don’t have a control that extends beyond the sides of the panel. Change panel1 to the name of the panel that has issues.
If you still cannot find the issue,
Panel.AutoScroll = falseandpanel1.HorizontalScroll.Visible = falseshould do the job.