Hi All Masters...
I have a datagridview and want to scroll with the mouse move up and down events like a mouse wheel
if anyone has sample code i would be very grateful
Thanks before...
Hi All Masters...
I have a datagridview and want to scroll with the mouse move up and down events like a mouse wheel
if anyone has sample code i would be very grateful
Thanks before...
For mouse up you can see in the designer, first you click properties. After that, you click events. So, you can search about mouse down or mouse up. After that, you type your datagridview name. Next, you double klik it.
After double klik it seems to be appear
nameofYourdatagridview_mouseup
Example
Private Sub DataGridView1_MouseUp(sender As Object, e As MouseEventArgs) Handles DataGridView1.MouseUp
If e.Button=MouseUp.Right Then
MessageBox.Show("Right Button is Clicking")
End If
End Sub
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.