473,396 Members | 2,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Click on Scroll Bar and Drag to Scroll

Below code works for me under VS 2008,
try it, probably might also work for you !

Expand|Select|Wrap|Line Numbers
  1. Private Sub PanelRemark_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles PanelRemark.Scroll
  2.         If e.ScrollOrientation = ScrollOrientation.VerticalScroll Then
  3.             PanelRemark.AutoScrollPosition = New Point(PanelRemark.AutoScrollPosition.X, _
  4.                                                                                     e.NewValue)
  5.             Exit Sub
  6.         End If
  7.         If e.ScrollOrientation = ScrollOrientation.HorizontalScroll Then
  8.             PanelRemark.AutoScrollPosition = New Point(e.NewValue, _
  9.                                                                                     -PanelRemark.AutoScrollPosition.Y)
  10.             Exit Sub
  11.         End If
  12.     End Sub
Aug 2 '12 #1
0 1106

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: anna | last post by:
Is it possible to have a javascript function which can scroll a page to the far right when a link is clicked? Any code examples available? TIA, Anna
5
by: Martin | last post by:
I have some pages I'm serving out that are about twice the size of the browser window (IE only; intranet only). The user must use the horizontal and vertical scroll bars to move the page around. ...
0
by: Mike | last post by:
Hi,I was wondering if it is possible to change the way a datagrid scrolls. I would really like to be able to do the following: 1) remove the vertical scrollbar / prevent one from appearing. 2)...
3
by: Dan | last post by:
Hi, I had an interesting idea recently to implement on my dynamic site. I would like to have the users be able to click on object 1 and drag it overtop of object 2. Object 1 and object 2...
5
by: ThunderMusic | last post by:
Hi, I'd need to find (or develop) a control of a map (worldwide if possible) where a user can click and drag to select an area by distance from the click point or using a square area (user's...
5
by: Wijaya Edward | last post by:
Hi, Some recent webapps like Kiko <http://www.kiko.com/, Google's gadget <http://www.google.com/ig/directory?hl=en, and spreadsheets <http://spreadsheets.google.com to name a few, have this...
1
by: Tuanisviet | last post by:
Hey folks. I've built a table in a Java Applet that has several rows in it. I know you can click, hold down the button, then drag all the way through the table to select them all, BUT on release of...
0
chandru8
by: chandru8 | last post by:
hi every body i am using scroll to scroll some controls instead can i use arrow keys to scroll the controls. thanks in advance
3
by: Martin | last post by:
I have an application that generates a page with an embedded SVG image in it. The image (the viewport) is intentionally larger than the screen (the browser's window size). I would like to provide...
4
by: falbertp | last post by:
Hi, How to detect when user scroll a datagridview it is already reach the end or the most bottom of scroll position? Please answer me, thank you
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.