How do I disable the horizontal scrollbar in a Panel

前端 未结 11 1916
别那么骄傲
别那么骄傲 2020-12-01 12:13

I have a panel (Windows Forms) and I want to disable a panels horizontal scrollbar. I tried this:

HorizontalScroll.Enabled = false;

But tha

11条回答
  •  不思量自难忘°
    2020-12-01 12:47

    Managed C++ code to hide HScroll Bar:

    // Hide horizontal scroll bar
    HWND h = static_cast (this->Handle.ToPointer());
    ShowScrollBar(h, SB_HORZ, false);
    

提交回复
热议问题