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.
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.
3 posts Page 1 of 1
Contributors
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

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
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

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
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 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.
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
3 posts Page 1 of 1
Return to “Coding Help & Support”