Scrolling a canvas with controls on top

hi!
I have windowform height 200 pixcel.In window from compose canvas control which canvas.height = 500 .
I use scrollbar for scroling canvas . The following example.

In Event ValueChanged of scrollbar. i’m put
If Me.Enabled Then
Canvas7.Top = Me.Top - Me.Value 'Scrollbar min/max is set: 0 to (cvsSettings.Height - scrSettings.Height)
End If

In Event MouseWheel of canvas .Im’put
ScrollBar1.Value = ScrollBar1.Value + deltaX

but Nothing happens when I do mousewheel on canvas

What should I do?
** window platform

You have to use canvas.scroll

NO. I want use scrollbar control for scrolling canvas control

ok.
your code works on mac.

Have you tried to add System.DebugLog str(Me.Top - Me.Value) in your value changed event?

IN value changed event

If Me.Enabled Then
Canvas7.Top = Me.Top - Me.Value 'Scrollbar min/max is set: 0 to (cvsSettings.Height - scrSettings.Height)
End If

You still use canvas.scroll in response to the scrollbar.