The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Is there any way to remove/hide the vertical scrollbar on this control if the active page doesn''t require vertical scrolling (it''s full height fits onscreen)?
ADAdministrator Syncfusion Team July 6, 2004 05:40 PM UTC
Hi Lori,
You can hide the vertical scrollbar of the active tabpage using the following code snippet.
private void tabBarSplitterControl1_ActivePageChanged(object sender, System.Windows.Forms.ControlEventArgs e)
{
//Hide the scrollbar in the active tabpage
foreach(Control c in e.Control.Controls)
{
if(c is VScrollBar)
{
c.Hide();
}
}
}
Please let me know if you have any questions. Thanks.
Best regards,
Stephen.
>Is there any way to remove/hide the vertical scrollbar on this control if the active page doesn''t require vertical scrolling (it''s full height fits onscreen)?
LSLori S. PearsallJuly 6, 2004 07:52 PM UTC
That doesn''t work - there isn''t a VScrollBar in the control collection so it never executes the .Hide().
I''ve also tried setting tabbarPage.VScroll to false it and doesn''t work.
>Hi Lori,
>
>You can hide the vertical scrollbar of the active tabpage using the following code snippet.
>
>private void tabBarSplitterControl1_ActivePageChanged(object sender, System.Windows.Forms.ControlEventArgs e)
>{
>//Hide the scrollbar in the active tabpage
>foreach(Control c in e.Control.Controls)
> {
> if(c is VScrollBar)
> {
> c.Hide();
> }
> }
>
>}
>
>Please let me know if you have any questions. Thanks.
>
>Best regards,
>
>Stephen.
>
>>Is there any way to remove/hide the vertical scrollbar on this control if the active page doesn''t require vertical scrolling (it''s full height fits onscreen)?