none
VS2010: cannot wheel scroll panel RRS feed

  • Question

  • Hi,

    I would like to ask a question with panel control in Windows form.

    With .AutoScroll set to TRUE,

                WithmyPanel               

                    .AutoScroll = True

                EndWith

    When there are many contents in the panel, both the vertical and horizontal scroll bar appears.

    However, only the horizontal scroll bar is associated with wheel action, not the vertical scroll bar which is what I really need.

    I tried

     .VerticalScroll

    property, but it turns out to be read-only.

    Could anyone suggest a way to horizontally scroll the content of the panel with mouse wheel?


    Bob


    Sunday, March 11, 2012 1:34 PM

All replies

  • Hi,

    I would like to ask a question with panel control in Windows form.

    With .AutoScroll set to TRUE,

                WithmyPanel               

                    .AutoScroll = True

                EndWith

    When there are many contents in the panel, both the vertical and horizontal scroll bar appears.

    However, only the horizontal scroll bar is associated with wheel action, not the vertical scroll bar which is what I really need.

    I tried

     .VerticalScroll

    property, but it turns out to be read-only.

    Could anyone suggest a way to horizontally scroll the content of the panel with mouse wheel?


    Bob


    Sunday, March 11, 2012 1:33 PM
  • Hi, Bob !

    This forum is about VBA, not VS 2010. I guess you should move your question to appropriate forum.

    Sunday, March 11, 2012 4:11 PM
  • al,

    Sorry, I will ask in this in a Windows form forum.

    Bob

    Sunday, March 11, 2012 4:13 PM