• Padding not working how it should be?

  • If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules: Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
 #84274  by Dummy1912
 Sat Aug 19, 2017 10:05 am
Hello,

In the image i have an panel
but as you can see the padding go out of the panel at the bottom :(
even when you scroll the buttons go over the panel top and even bottom :(

'adding controls
https://drive.google.com/open?id=0B37cl ... XVWMDFzZVE
'when scrolling
https://drive.google.com/open?id=0B37cl ... ktVY1Z5OG8

how can we fix this please
Code: Select all
'tried with any number but don't change  a thing
        AutoScroll = True
        Padding = New Padding(3, 3, 20, 15) '(10, 10, 25, 0)

Thanks
 #84276  by Dummy1912
 Sun Aug 20, 2017 8:53 am
Hello,

It seems when we use the border size of the panel
the controls stays inside :D

but then our own drawn border size will not look that great because the default border size overlaps my drawing :(
anyone has a solution please?
https://drive.google.com/open?id=0B37cl ... 0cyMnlUeUE
 #84277  by Dummy1912
 Sun Aug 20, 2017 1:03 pm
Fix it :)

no worries
just playing and thinking of an way an we managed it :)

result:
https://drive.google.com/open?id=0B37cl ... Wkxa3NoeGs

Thanks.