![]() |
|
[.NET] TabControl navigation button hide - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] TabControl navigation button hide (/showthread.php?tid=5789151) |
TabControl navigation button hide - edin_ - Jan 23, 2018 Hey everyone, i have this tabcontrol from FireFox theme and i made some changes like resizing tabpages to fit width of tabcontrol as shown on image below but i cannot manage to disable those navigation buttons. Is there any way to hide/disable navigation buttons? PHP Code RE: TabControl navigation button hide - Ninja - Jan 23, 2018 You can try this: https://stackoverflow.com/a/5489739 Or possibly this: https://msdn.microsoft.com/en-us/library/windows/desktop/bb787579(v=vs.85).aspx RE: TabControl navigation button hide - .cYRil. - Jan 23, 2018 You can create a controller for that tab control. RE: TabControl navigation button hide - edin_ - Jan 25, 2018 Thanks. @Orka I tried that and it didn't help me. @Ninja The first link is great if you want hide scrollbars on panels but doesn't work with this issue @.cYRil. Too much work for me. Thank you all for your help, but i figured out how to do with drawing tabpages in on paint event, in code where i divide width with tabpages count i put width - 5px and move right borders 5px on left so that last tabpages never goes offset and those navigation buttons never be summoned. It's not good solution but it works. Image RE: TabControl navigation button hide - Ninja - Jan 25, 2018 (Jan 25, 2018 06:54 AM)edin_ Wrote: @Ninja The first link is great if you want hide scrollbars on panels but doesn't work with this issue You can use the same method to filter the message that enables the navigation button on the TabControl I am pretty sure. You need to look on MSDN for the message though. EDIT: Maybe this helps: https://dotnetrix.co.uk/tabcontrol.htm#tip14 EDIT2: Here are the tabcontrol messages: https://msdn.microsoft.com/en-us/library/ff486047(v=vs.85).aspx |