|
-
August 29th, 2001, 09:46 AM
#4
Re: Out of Memory - Forms
You may not like this solution and it might not work, but here goes. First, save a copy of your form for backup purposes. Next, Delete all of the labels off of the picture box. Run your form to see if you are still getting the out of memory error. If you do, this solution won't work. If the out of memory error does not show up, you will have to label everything through code. Do it like this.
<vbcode>
Option Explicit
Private Loading As Boolean
Private Sub Form_Activate()
If Loading Then
Picture1.Cls
Picture1.CurrentX = 50
Picture1.CurrentY = 50
Picture1.Print "First Label"
Picture1.CurrentX = 250
Picture1.CurrentY = 250
Picture1.Print "Second Label"
Picture1.CurrentX = 450
Picture1.CurrentY = 450
Picture1.Print "Third Label"
Loading = False
End If
End Sub
Private Sub Form_Load()
Loading = True
End Sub
</vbcode>
Yes this will be a real pain in the @#$. The only other way I can think of at the moment will be to break things up into different forms.
Hope this helps
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|