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. C#
  4. Adding scrollbar in GDI+ [modified]

Adding scrollbar in GDI+ [modified]

Scheduled Pinned Locked Moved C#
graphicswinformshelpquestion
4 Posts 2 Posters 0 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.
  • C Offline
    C Offline
    cshivaprasad
    wrote on last edited by
    #1

    I have to draw a picture using GDI, which is definitely bigger than the screen. I dont know the drawing size intially, its dynamic one. so, to see the whole picture i should have scroll bars. how can i add scroll bar to form. Please help me with sample code. Thanks in Advance -- modified at 5:06 Thursday 25th May, 2006

    A 1 Reply Last reply
    0
    • C cshivaprasad

      I have to draw a picture using GDI, which is definitely bigger than the screen. I dont know the drawing size intially, its dynamic one. so, to see the whole picture i should have scroll bars. how can i add scroll bar to form. Please help me with sample code. Thanks in Advance -- modified at 5:06 Thursday 25th May, 2006

      A Offline
      A Offline
      alexey N
      wrote on last edited by
      #2

      Here is a simple method: Set form property AutoSize to true. Place panel on form in (0,0) location. Set panel size equal to image size. Draw your image on this panel. Best regards, Alexey.

      A 1 Reply Last reply
      0
      • A alexey N

        Here is a simple method: Set form property AutoSize to true. Place panel on form in (0,0) location. Set panel size equal to image size. Draw your image on this panel. Best regards, Alexey.

        A Offline
        A Offline
        alexey N
        wrote on last edited by
        #3

        Sorry, cant modify my post, this property is AutoScroll, not AutoSize. Best regards, Alexey.

        C 1 Reply Last reply
        0
        • A alexey N

          Sorry, cant modify my post, this property is AutoScroll, not AutoSize. Best regards, Alexey.

          C Offline
          C Offline
          cshivaprasad
          wrote on last edited by
          #4

          Thanks 4 Ur Help. I did nt get the way to keep panel at (0,0) position. infact i am not using any panel...., can u please tell me, what is panel.. and how to keep it (0,0) position, Please help me.. Thank U

          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