Learn how to a build a cloud-first strategyRegister Now


What is the maximum size of a picturebox?

Posted on 2005-05-11
Medium Priority
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
  • 2

Accepted Solution

Burbble earned 400 total points
ID: 13981034
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

ID: 13981647
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!

Expert Comment

ID: 13981936
Glad to help

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month20 days, 16 hours left to enroll

810 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