Scrollable picturebox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alwayssmiling
    New Member
    • Oct 2006
    • 33

    Scrollable picturebox

    Hi,

    I want a scrollable picture box in my application. But picture box can't have auto scroll property on its own. So in order to get scroll for my picture box i placed it in a panel. And set the auto scroll proeprty of the panel to true. And the picture box size mode property to auto size mode. If i follow this approach, if the image size is bigger than picture box size then only its showing the scroll. On other scenarios, scroll is not visible. But i want scroll for the picture box, any time even though image size is bigger or smaller.

    Any suggestions will be greatly appreciated.... ..........
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    So you tried the overflow:auto style suggestion from your last post? If this isn't what you want try overflow:scroll and post the results here rather than reposting.

    Comment

    • alwayssmiling
      New Member
      • Oct 2006
      • 33

      #3
      Thank u for ur reply.

      But im not getting wat ur saying. I set the sizemode property of the picture box to autosize. wat is overflow setting. The previous discussion is the one which i posted in the morning. Then wat abt reposting...... ...

      Comment

      • radcaesar
        Recognized Expert Contributor
        • Sep 2006
        • 759

        #4
        Create a panel

        Set the panel AutoScroll property to True

        Create a picturebox inside the panel at location top and left to 0

        Set Image property of the picturebox to the image that should appear in the picturebox

        Sizemode property of the picturebox must be set to Normal

        In the FormLoad
        Me.PictureBox1. Size = Me.PictureBox1. Image.Size

        ---
        RadC

        Comment

        • alwayssmiling
          New Member
          • Oct 2006
          • 33

          #5
          Hi,

          Thanks for ur reply. I tried ur suggestion but im not getting the required functionality .....

          Comment

          • kenobewan
            Recognized Expert Specialist
            • Dec 2006
            • 4871

            #6
            Basically, you give the panel an overflow style of scroll, rather than auto, using CSS.

            Reposting is where you start a new thread with a question that you have already asked. Moderators may remove your post if they decide that this is what you are doing - see FAQs

            Comment

            Working...