-
Hey guys.
I just changed all the command buttons in my application to graphical (just in order to change their color). THen when I ran the application, whenever the button was pressed, from that point onward, whenever the form containing that button is reload, the square where the button is located is the color or image of the screen behind the application. It would seem to be a RAM problem, right, but I have 128 Mb of RAM in this machine and I've never had that trouble before.
Things I have tried are Refreshing the form, refreshing the button, refresh-timer delay-refresh.
None of these will repaint the button where it was.
Any ideas?
Thanks all.
-
It's possible that another program was using up resources. Try restarting your computer and see if it helps.
-
Additional information
Indeed, this has nothing to do with the RAM. I think you ran out of GDI memory, possible reasons are - too many wasted memory (loading many pictures and exiting without unloading them), haveing IE openend for a long time (after some minutes of browsing thru pics your GDI memory is empty!), and so on, all graphical apps may cause this...
However, restarting your computer is probably the only way, but sometimes it works to just restart VB (or IE or whatever).
-
Hey fellas.
Just to update, restarting the PC doesn't help this problem.
Anyway, I switched the buttons back to standard and this problem stopped.
Of course, I am a bit concerned about this for the future, since I am sure I'll be 'dressing up' other applications down the road.