Hi,
We are using Micrsoft Picture box to display an image -this is placed inside an ultra panel . We are trying to zoom the image using the code :
drawsize = NEW System.Drawing.Size(2, 2).
pictureSize = THIS-OBJECT:pictureBox1:SIZE.
THIS-OBJECT:pictureBox1:SIZE = NEW System.Drawing.Size(INT(pictureSize:WIDTH * drawsize:WIDTH), INT(pictureSize:HEIGHT * drawsize:HEIGHT)).
THIS-OBJECT:ultraPanel1:Dock = System.Windows.Forms.DockStyle:FILL.
After zooming for a couple of times, i get the below error :
System.ComponentModel.Win32Exception:Not Enough storage is available to process this command.
This works without issues when i run this as an individual program, but errors out when i call this from the application. Could this be because of the controls i have used or something to do with the memory ? .
Thanks,
Bharani