What is the maximum size of a picturebox?

Posted on 2005-05-11
Last Modified: 2008-01-09
I have a large panoramic image I am trying to display in a picture box, but the right side is getting cut off. I have looked for different ways to manipulate the picturebox and picture, but I think I have reached a limitation in the PictureBox Control. Does anyone know the Maximum width of a picturebox?
Question by:TechNeck
    LVL 7

    Accepted Solution

    Using this:

    Private Sub Timer1_Timer()
        Picture1.Width = Picture1.Width + 1500
        Me.Caption = Picture1.Width
    End Sub

    I found the maximum width and maximum height both to be 245,745 twips (16,383 x 16,383 pixels, or (2^14 -- 1) )

    Author Comment

    Thanks for your assistance. I couldn't find any reference to this anywhere. Didn't even think about creating a routine like you did. Thanks!
    LVL 7

    Expert Comment

    Glad to help

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now