Is there a way (perhaps with P/Invoke) to guarantee that the horizontal scrollbar will never appear in a usercontrol? It seems that even when i have the autoscroll property set to false, it displays sometimes.
Is there a way (perhaps with P/Invoke) to guarantee that the horizontal scrollbar will
Share
Actually your form is setting UserControl with old properties.
So you have to do this
UserControl.AutoScroll=False;Explanation:
When you drag your UserControl at that time The Designer set the properties in FormDeginer (check your Form Deginer)
Now after changing properties of your UserControl,and then adding it is set by new Properties for new Control instance but didn’t change of old ones…