scrolling datagridview without get focus - vb.net

Is there a way to use wheel mouse and scroll vertical bar without actually get focus on datagridview in vb.net?
andrew

You can use the scroll event to the form where the grid is found and scroll the grid by using the following article:
Controlling scrolling with the API

Related

How to detect end of scroll listbox?

I am trying to implement a pull to refresh on my windows phone application and using ListBox control,
I tried this sample : Pull to refresh On Windows Phone but it is not support for ListBox.I'm using Listbox and want to dectect end of scroll in listbox.(not LongListSelector) and so how do dectect end of scroll down in listbox control.
Note : I'm using listbox control because I want display item in Horizontal so I'm not use LongListSelector.
you can detect Flick Gestures like top to bottom through VerticalVelocity of Flick events.

How do I scroll with the scrollbar?

I am currently working on a project in VB.NET and I have a fixed-border form with the AutoScroll property set to True. Under the Load event, I have some loops that add a bunch of controls to the form, so I have AutoScroll create the scrollbar for me automatically.
Now when I open up this form, all the controls load up with no problem, it focuses on my first text box, and the scroll bar shows up. However, the mouse wheel does not do anything whatsoever.
So my question is, how do I, no matter where my focus or mouse is, scroll with the AutoScroll property enabled, in VB.NET?
as far as i know, scrolling is only enabled when focusing the appropriate element. but should be able to trigger scrolling by catching onmouseover() or similar...
this is somthing similar (just for a datagrid) scrolling datagridview without get focus

Making a DataGridView Horizontal Scroll Event Scroll Another Control

I have a DataGridView with a panel above it, that contains a group of textboxes above each column. My DataGridView has a horizontal scroll bar. What I want to do is when the DataGridView scrolls horizontally, scroll the panel with textboxes above it, so they stay aligned.
I tried handling the DataGridView's scroll event, but I'm not sure what to do with it. Does anyone have any examples with this?
Sorry - I thought this was an ASP.NET quesiton = ignore my answer.

Force Vertical Scrollbar to be Visible in Panel

I have a Windows Forms VB.NET application, with a panel that contains a few other controls.
I set the panel's AutoScroll property to True, and that seems to appropriately apply the scroll bars when they are needed. The issue is that a user must scroll all the way to the right to access the vertical scroll bar. Is there a way to always show the vertical scrollbar no matter where the user is scrolled horizontally?
EDIT
I guess the main problem I have here is that I have a DataGridView inside of a panel. I want the panel to do the vertical scrolling, and not the DataGridView. Why is it when I turn off vertical scrollbars on the datagridview and have autoscroll on the panel, a vertical scroll bar is never shown?
You could add a VScrollBar on the right side of the panel and set code behind to move the panel scroll up and down.
or
A better option may be to switch your panel to a FlowLayoutPanel which provides quite a bit of control over the scroll handles both vertical and horizontal.
Check out MSDN and see how to use all of the properties of the FLP:

'Mouse capture' on a scrollbar and popup window in Silverlight 4

I've hit a problem with my OOB silvelight 4 applicatrion.
There is a DataGrid on the page with numer of rows, so that vertical scroll bar appears for the DataGrid.
At times I need to show a child window with a message and OK button.
If before showing the child window I am using the scroll bar, that remains selected after popup is closed. If I move mouse over scroll bar data grid scrolls.
I have tried UpdateLayout, chage visibility, rebind ItemSource. Nothing helps.
Thank you in advance for any idea.
Use the UIElement.ReleaseMouseCapture() method.