Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Visual Basic 2008 Programmer's Reference ISBN: 978-0-470-18262-8
This is the forum to discuss the Wrox book Visual Basic 2008 Programmer's Reference by Rod Stephens; ISBN: 9780470182628
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Visual Basic 2008 Programmer's Reference ISBN: 978-0-470-18262-8 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 3rd, 2009, 01:32 PM
Registered User
 
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Scrolling

I'm a windows VB 2008 peogrammer. I need to learn how to allow only one direction of scrolling within a panel. It seems that my only option in VB 2008 is to get both vertical and hroizontal scrolling. If this is true, then can somebody refer me to a good reference or code examples for doing your own scrolling? I'm not much of a graphics programmer, but I do understand the concepts.
  #2 (permalink)  
Old February 9th, 2009, 04:14 PM
Authorized User
 
Join Date: Dec 2008
Location: Keyport, NJ 07735
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Add a VScrollBar control to your form then in its scroll event put

Code:
    Private Sub VScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles VScrollBar1.Scroll
        Panel1.VerticalScroll.Value = e.NewValue
    End Sub
Assuming you want vertial scrolling. If you want Horizontal then add a HScrollBar control.

If this helps please use the thank me button.

Last edited by Patrick Cambria; February 9th, 2009 at 04:17 PM.. Reason: Forgot to use the [code] tags
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
scrolling red_fiesta Classic ASP Professional 5 November 2nd, 2006 12:35 PM
scrolling carro123 Javascript How-To 0 June 6th, 2005 12:29 PM
Scrolling Textbox interrupt Javascript How-To 6 January 11th, 2005 10:29 AM
scrolling smn2 Classic ASP Professional 1 August 28th, 2003 06:57 AM
Scrolling smn2 Classic ASP Basics 0 August 28th, 2003 05:00 AM



All times are GMT -4. The time now is 11:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.