Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. vertical scrollbar [modified]

vertical scrollbar [modified]

Scheduled Pinned Locked Moved Windows Forms
databasetutorial
2 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rahul Babu
    wrote on last edited by
    #1

    hi friends I have a query regarding vertical scroll bar. how to use vertical scroll bar(vscroll) with a label. that is when the contents in the label increases, a scroll bar should appear. I dont want a default scroll bar like in the rich text box control .... I want to work with the vscroll control. thanks in advance -- modified at 1:33 Friday 30th March, 2007

    C 1 Reply Last reply
    0
    • R Rahul Babu

      hi friends I have a query regarding vertical scroll bar. how to use vertical scroll bar(vscroll) with a label. that is when the contents in the label increases, a scroll bar should appear. I dont want a default scroll bar like in the rich text box control .... I want to work with the vscroll control. thanks in advance -- modified at 1:33 Friday 30th March, 2007

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You need to write a control to do this. You would just use the MEasureString method on the graphics class to work out if your text is going to be oversize, show a scrollbar accordingly, and redraw the string offset by the scrollbar position when a scroll event occurs.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups