Not enough storage space to process the command - Resizing Picture box

  • Thread starter Thread starter Dale Atkin
  • Start date Start date
D

Dale Atkin

As part of a program I'm writing, I have a picture box, loaded up with an
image. The picture box is set to automatically size the image in it to fit
the bounds of the picture box.

The picture box sits inside another container.

To pan the image, I'm adjusting the left/right properties of the image.

To zoom the image, I'm adjusting the height and width.

The problem comes, when I zoom past a certain point (haven't figured out
exactly what point yet), I get the error "Not enough storage space to
process the command".

I'm fine with having limited zoom capability, but I obviously need to set
some kind of maximum height/width on the picture box so that I don't
generate this error.

Anyone know what the magic number would be? Or how to determine it
(hopefully not the brute force approach)?

Dale
 
Dale,

Can you inform us how much memory is installed on your computer what type of
OS include bit version etc.

Cor
 
Cor Ligthert said:
Dale,

Can you inform us how much memory is installed on your computer what type
of OS include bit version etc.

Cor

While its not going to be just my computer this is running on (in the long
term), my system has 3GB of physical RAM running Windows Vista 32bit
(Business Edition). Currently the page file is set to 6GB. Tons of free hard
drive space

Dale
 
Back
Top