Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8878071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:37:27+00:00 2026-06-14T19:37:27+00:00

I have a panel with autoscroll and I need to change the mouse scroll

  • 0

I have a panel with autoscroll and I need to change the mouse scroll lines number

I will mean this:

(Mouse properties in spanish, sorry)

enter image description here

But I will change it in my program, for my panel, obvius, not in the SO!

PS: for example the Winamp media player have an option for that.

I can’t find info anywhere, please help.

UPDATE

My scrollbar is a panel with “AutoScroll” property

My event is this:

    Private Sub Panel1_MouseScroll(sender As Object, e As MouseEventArgs) Handles Panel1.MouseWheel

    Panel1.Invalidate()

    End Sub

This is the content of my panel:

  ' Checkbox drawing
Public Sub updatecheckboxes()
    ' delete the old checkboxes
    Panel1.Controls.Clear()
    ' create the new checkboxes
    Dim filesystem = CreateObject("Scripting.FileSystemObject")
    Dim ThisDir = filesystem.GetFolder(My.Settings.folderpath)
    Dim i As Int32 = 0
    Dim pos As Int32 = 10
    For Each folder In ThisDir.Subfolders
        Array.Resize(mcheck, i + 1)
        mcheck(i) = New CheckBox
        With mcheck(i)
            .AutoSize = True
            .Location = New Point(10, pos)
            .Name = "CheckBox" & i + 1
            .Text = folder.Name
        End With
        Me.Panel1.Controls.Add(mcheck(i))
        AddHandler mcheck(i).CheckedChanged, AddressOf LlamadaCheckBox
        i += 1
        pos += 20
    Next

End Sub

enter image description here

I want to change the number of scrolled lines because of the distorted efefct inside the panel, If i use “one scoll-page” or “10 scrolls at time” like the imagen of Windows SO properties then I can fix it!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:37:29+00:00Added an answer on June 14, 2026 at 7:37 pm

    You can use SendMessage to scroll by any number of lines you want, regardless of what’s in SystemInformation.MouseWheelScrollLines. MouseWheel event does not occur for a Panel. So I tested this on a TextBox:

    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
                   (ByVal handle As IntPtr, ByVal wMsg As Integer,
                    ByVal wParam As Integer, ByVal lParam As Integer) As Integer
    

    Scroll one line up:

    SendMessage(TextBox1.Handle, &HB6, 0, -1)
    

    Scroll one line down:

    SendMessage(TextBox1.Handle, &HB6, 0, 1)
    

    The last parameter is a number of lines, sign indicates direction. Negative – up, positive – down.

    You should be able to override/suppress mouse wheel handling and insert these two statements instead, depending on the sign of delta value being passed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a created a panel. This has autoscroll = true At the start
I have a panel whose AutoScroll = true; I can scroll the panel using
I have a Panel on a Windows Form. The Panel has autoscroll enabled. The
I have a panel on my form with AutoScroll set to true so a
I have a Panel that I wish to scroll horizontally through code, the problem
I have a panel with AutoScroll set to true . In it, I am
I have a custom control inside an autoscroll panel. When the user control extends
I have a tab panel like this: var tab1 = { id: 'section1', title:
I have a tab panel like this: var tab1 = { id: 'section1', title:
I have a problem. I use extjs grid . This grid will be refreshed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.